test: dedupe expected article pages

Co-authored-by: wangcham <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-18 12:12:49 +00:00
committed by GitHub
co-authored by wangcham
parent e04c5cedae
commit edfa3d7f2c
+1 -1
View File
@@ -46,7 +46,7 @@ test("article tabs group every generated Blog page exactly once", () => {
[],
`${locale} extra article pages must not overlap with the synchronized manifest`,
);
const expected = manifestPages.concat(extras);
const expected = [...new Set(manifestPages.concat(extras))];
assert.deepEqual([...pages].sort(), [...expected].sort());
assert.equal(new Set(pages).size, pages.length, `${locale} has duplicate article navigation entries`);
}