diff --git a/test/parallel/test-url-pathtofileurl.js b/test/parallel/test-url-pathtofileurl.js index 106f2ba3ff6736..d18b5a41fdfc2f 100644 --- a/test/parallel/test-url-pathtofileurl.js +++ b/test/parallel/test-url-pathtofileurl.js @@ -42,15 +42,15 @@ const url = require('url'); '\\\\', { [Symbol.toPrimitive]: () => 'blep\\blop' }, ]), { - code: 'ERR_INVALID_ARG_VALUE', + code: 'ERR_INVALID_ARG_TYPE', }); assert.throws(() => url.pathToFileURL(['\\\\', 'blep\\blop']), { - code: 'ERR_INVALID_ARG_VALUE', + code: 'ERR_INVALID_ARG_TYPE', }); assert.throws(() => url.pathToFileURL({ [Symbol.toPrimitive]: () => '\\\\blep\\blop', }), { - code: 'ERR_INVALID_ARG_VALUE', + code: 'ERR_INVALID_ARG_TYPE', }); } else {