diff options
-rw-r--r-- | test/es-module/test-esm-loader-invalid-format.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/es-module/test-esm-loader-invalid-format.mjs b/test/es-module/test-esm-loader-invalid-format.mjs index 88b128affd..f8714d4aa1 100644 --- a/test/es-module/test-esm-loader-invalid-format.mjs +++ b/test/es-module/test-esm-loader-invalid-format.mjs @@ -4,8 +4,8 @@ import assert from 'assert'; import('../fixtures/es-modules/test-esm-ok.mjs') .then(assert.fail, expectsError({ - code: 'ERR_INVALID_RETURN_PROPERTY', - message: 'Expected string to be returned for the "url" from the ' + - '"loader resolve" function but got "undefined"' + code: 'ERR_INVALID_RETURN_PROPERTY_VALUE', + message: 'Expected string to be returned for the "format" from the ' + + '"loader resolve" function but got type undefined.' })) .then(mustCall()); |