Skip to content

Commit

Permalink
Fix CI on Node.js 12 and 14 (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
midgleyc committed Jul 13, 2021
1 parent 1467758 commit 3fb24bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -16,7 +16,7 @@
"node": ">=12.20"
},
"scripts": {
"test": "xo && nyc ava && tsd"
"test": "xo && c8 ava && tsd"
},
"files": [
"index.js",
Expand All @@ -39,11 +39,12 @@
],
"devDependencies": {
"ava": "^3.15.0",
"nyc": "^15.1.0",
"c8": "^7.7.3",
"tsd": "^0.17.0",
"typescript": "^4.3.5",
"xo": "^0.41.0"
},
"nyc": {
"c8": {
"reporter": [
"text",
"lcov"
Expand Down
6 changes: 3 additions & 3 deletions test.js
Expand Up @@ -269,19 +269,19 @@ test('invalid urls', t => {
t.throws(() => {
normalizeUrl('http://');
}, {
message: 'Invalid URL',
message: /^Invalid URL/,
});

t.throws(() => {
normalizeUrl('/');
}, {
message: 'Invalid URL',
message: /^Invalid URL/,
});

t.throws(() => {
normalizeUrl('/relative/path/');
}, {
message: 'Invalid URL',
message: /^Invalid URL/,
});
});

Expand Down

0 comments on commit 3fb24bb

Please sign in to comment.