Skip to content

Commit b63d962

Browse files
Update tests-node/unit/prember-urls-test.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a790176 commit b63d962

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests-node/unit/prember-urls-test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ describe('Unit | prember-urls', function () {
222222

223223
let urls = premberUrls({ distDir: tmpDir });
224224
let docsCount = urls.filter((u) => u === '/docs').length;
225-
// '/docs' from the docs JSON and '/docs/index' from search index are different,
226-
// but '/docs' itself should only appear once
225+
// Both the docs JSON and the search index contribute '/docs', but the URL
226+
// itself should only appear once after deduplication.
227227
assert.equal(docsCount, 1);
228+
assert.notInclude(urls, '/docs/index');
228229
});
229230
});

0 commit comments

Comments
 (0)