Skip to content

Commit 5886534

Browse files
freganteclaude
andcommitted
Meta: Drop the URL that no detection matches
Co-authored-by: Claude Dragon 🐉 <noreply@anthropic.com>
1 parent f2376bb commit 5886534

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎index.test.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,14 @@ import * as pageDetect from './index.js';
1515
clearTimeout(id);
1616
};
1717

18-
// Matched by no detection
19-
const urlsThatDontMatch = [
20-
'https://github.com/orgs/community/discussions/new/choose',
21-
];
22-
2318
// Can't be tested via URLs alone
2419
const skipped = new Set([
2520
'isRepoFile404', // Depends on `document.title`
2621
'hasRepoHeader', // `isRepo` except `isRepoSearch`
2722
]);
2823

2924
const skippedUrls = new Set([...skipped].flatMap(name => getTests(name)));
30-
const allUrls = new Set([...getAllUrls(), ...urlsThatDontMatch].filter(url => !skippedUrls.has(url)));
25+
const allUrls = new Set([...getAllUrls()].filter(url => !skippedUrls.has(url)));
3126

3227
for (const [detectName, detect] of Object.entries(pageDetect)) {
3328
if (typeof detect !== 'function') {

0 commit comments

Comments
 (0)