mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
test: dedupe expected article pages
Co-authored-by: wangcham <[email protected]>
This commit is contained in:
co-authored by
wangcham
parent
e04c5cedae
commit
edfa3d7f2c
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user