From a565d00e18cf062bd82cac57b0d21939325cf8fb Mon Sep 17 00:00:00 2001 From: OnkarRuikar <87750369+OnkarRuikar@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:14:46 +0530 Subject: [PATCH] fix test --- kumascript/macros/MDNSidebar.ejs | 2 +- kumascript/tests/macros/mdnsidebar.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kumascript/macros/MDNSidebar.ejs b/kumascript/macros/MDNSidebar.ejs index 0586bbc99e3d..8db136849140 100644 --- a/kumascript/macros/MDNSidebar.ejs +++ b/kumascript/macros/MDNSidebar.ejs @@ -139,7 +139,7 @@ const text = mdn.localStringMap({ "advisory_board": "Advisory Board", "mdn_product_advisory_board": "MDN Product Advisory Board", "product_advisory_board_charter_&_membership": "Product Advisory Board Charter & Membership", - "community_guidelines": "Community guidelines", + "community_guidelines": "Règles de la communauté", "community_guidelines_overview": "Overview", "contributing_to_mdn_web_docs": "Contributing to MDN Web Docs", "contributing_to_mdn_web_docs_overview": "Overview", diff --git a/kumascript/tests/macros/mdnsidebar.test.ts b/kumascript/tests/macros/mdnsidebar.test.ts index 063114ffeae9..364be09204e6 100644 --- a/kumascript/tests/macros/mdnsidebar.test.ts +++ b/kumascript/tests/macros/mdnsidebar.test.ts @@ -3,16 +3,16 @@ import { JSDOM } from "jsdom"; const locales = { "en-US": { - About_MDN: "Community guidelines", + community_guidelines: "Community guidelines", }, fr: { - About_MDN: "Règles de la communauté", + community_guidelines: "Règles de la communauté", }, }; function checkSidebarDom(dom, locale) { const summaries = dom.querySelectorAll("summary"); - assert.equal(summaries[0].textContent, locales[locale].About_MDN); + assert.equal(summaries[2].textContent, locales[locale].community_guidelines); } describeMacro("MDNSidebar", function () {