test: fix ESM test
The previously landed commit was broken and it’s too late to force-push. Fixing up the test seems to work. Refs: https://github.com/nodejs/node/pull/21352 PR-URL: https://github.com/nodejs/node/pull/21605 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
1bf42f4777
commit
deff8dbf49
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user