summaryrefslogtreecommitdiff
path: root/test/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/helpers.ts')
-rw-r--r--test/helpers.ts14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/helpers.ts b/test/helpers.ts
index 60b1dff6..45751407 100644
--- a/test/helpers.ts
+++ b/test/helpers.ts
@@ -4,7 +4,7 @@ import './fixtures/globals';
import pluralize from '../source/helpers/pluralize';
import {
getDiscussionNumber,
- getOwnerAndRepo,
+ getCurrentRepository,
parseTag,
compareNames,
getScopedSelector,
@@ -85,15 +85,9 @@ test('getDiscussionNumber', t => {
test('getOwnerAndRepo', t => {
location.href = 'https://github.com/sindresorhus/refined-github/pull/148';
- t.deepEqual(getOwnerAndRepo(), {
- ownerName: 'sindresorhus',
- repoName: 'refined-github'
- });
-
- location.href = 'https://github.com/DrewML/GifHub/blob/master/.gitignore';
- t.deepEqual(getOwnerAndRepo(), {
- ownerName: 'DrewML',
- repoName: 'GifHub'
+ t.deepEqual(getCurrentRepository(), {
+ owner: 'sindresorhus',
+ name: 'refined-github'
});
});