Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Jan 17, 2024
1 parent 86e9a51 commit a565d00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kumascript/macros/MDNSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions kumascript/tests/macros/mdnsidebar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit a565d00

Please sign in to comment.