Skip to content

Commit

Permalink
Fix test for Node 12.
Browse files Browse the repository at this point in the history
The value of the `name` field changed for v12.
  • Loading branch information
mastermatt committed Jun 17, 2019
1 parent 3efe155 commit aa4d82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ test('normalizeClientRequestArgs throws for invalid URL', async t => {
// no schema
t.throws(() => common.normalizeClientRequestArgs('example.test'), {
input: 'example.test',
name: 'TypeError [ERR_INVALID_URL]',
name: /TypeError/,
})
})

Expand Down

0 comments on commit aa4d82c

Please sign in to comment.