diff options
Diffstat (limited to 'test/parallel/test-url-format-invalid-input.js')
-rw-r--r-- | test/parallel/test-url-format-invalid-input.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-url-format-invalid-input.js b/test/parallel/test-url-format-invalid-input.js index a80cd90586..cc4f6bdc0f 100644 --- a/test/parallel/test-url-format-invalid-input.js +++ b/test/parallel/test-url-format-invalid-input.js @@ -13,14 +13,14 @@ const throwsObjsAndReportTypes = new Map([ [Symbol('foo'), 'symbol'] ]); -for (const [obj, type] of throwsObjsAndReportTypes) { +for (const [urlObject, type] of throwsObjsAndReportTypes) { const error = common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: 'The "urlObj" argument must be of type object. ' + + message: 'The "urlObject" argument must be one of type object or string. ' + `Received type ${type}` }); - assert.throws(function() { url.format(obj); }, error); + assert.throws(function() { url.format(urlObject); }, error); } assert.strictEqual(url.format(''), ''); assert.strictEqual(url.format({}), ''); |