diff options
Diffstat (limited to 'test/parallel/test-whatwg-url-searchparams-getall.js')
-rw-r--r-- | test/parallel/test-whatwg-url-searchparams-getall.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-whatwg-url-searchparams-getall.js b/test/parallel/test-whatwg-url-searchparams-getall.js index 3a8bf347ff..a4692c22f1 100644 --- a/test/parallel/test-whatwg-url-searchparams-getall.js +++ b/test/parallel/test-whatwg-url-searchparams-getall.js @@ -42,20 +42,20 @@ test(function() { // Tests below are not from WPT. { const params = new URLSearchParams(); - assert.throws(() => { + common.expectsError(() => { params.getAll.call(undefined); - }, common.expectsError({ + }, { code: 'ERR_INVALID_THIS', type: TypeError, message: 'Value of "this" must be of type URLSearchParams' - })); - assert.throws(() => { + }); + common.expectsError(() => { params.getAll(); - }, common.expectsError({ + }, { code: 'ERR_MISSING_ARGS', type: TypeError, message: 'The "name" argument must be specified' - })); + }); const obj = { toString() { throw new Error('toString'); }, |