Skip to content

Commit 22d7be0

Browse files
Update test cases for isCompare and isQuickPR
1 parent 329cc0e commit 22d7be0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ TEST: addTests('isCompare', [
5252
'https://github.com/sindresorhus/refined-github/compare',
5353
'https://github.com/sindresorhus/refined-github/compare/',
5454
'https://github.com/sindresorhus/refined-github/compare/master...branch-name',
55-
'https://github.com/sindresorhus/refined-github/compare/master...branch-name?quick_pull=1',
56-
'https://github.com/sindresorhus/refined-github/compare/branch-1...branch-2?quick_pull=1',
57-
'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1',
55+
'isQuickPR',
5856
]);
5957

6058
export const isCompareWikiPage = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepoWiki(url) && getCleanPathname(url).split('/').slice(3, 5).includes('_compare');
@@ -293,6 +291,7 @@ TEST: addTests('isQuickPR', [
293291
'https://github.com/sindresorhus/refined-github/compare/master...branch-name?quick_pull=1',
294292
'https://github.com/sindresorhus/refined-github/compare/branch-1...branch-2?quick_pull=1',
295293
'https://github.com/sindresorhus/refined-github/compare/test-branch?quick_pull=1',
294+
'https://github.com/refined-github/sandbox/compare/fregante-patch-2?expand=1',
296295
'https://github.com/refined-github/sandbox/compare/default-a...fregante-patch-2?expand=1',
297296
]);
298297

0 commit comments

Comments
 (0)