Skip to content

Commit

Permalink
fixup! test(flaws): test that fallback links are not in broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Mar 15, 2024
1 parent 98c5435 commit 40fddf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1614,9 +1614,9 @@ test("translated content broken links can fall back to en-us", () => {
doc: Doc;
};

const map = new Map(doc.flaws.broken_links.map((x) => [x.href, x]));
expect(map.keys()).not.toContain("/fr/docs/Web/CSS/dumber");
expect(map.keys()).not.toContain("/fr/docs/Web/CSS/number");
const brokenHrefs = doc.flaws.broken_links.map((x) => x.href);
expect(brokenHrefs).not.toContain("/fr/docs/Web/CSS/dumber");
expect(brokenHrefs).not.toContain("/fr/docs/Web/CSS/number");

const htmlFile = path.join(builtFolder, "index.html");
const html = fs.readFileSync(htmlFile, "utf-8");
Expand Down

0 comments on commit 40fddf3

Please sign in to comment.