Skip to content

Commit deff8db

Browse files
committed
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: #21352 PR-URL: #21605 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 1bf42f4 commit deff8db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/es-module/test-esm-loader-invalid-format.mjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import assert from 'assert'
44

55
import('../fixtures/es-modules/test-esm-ok.mjs')
66
.then(assert.fail,expectsError({
7-
code: 'ERR_INVALID_RETURN_PROPERTY',
8-
message: 'Expected string to be returned for the "url" from the '+
9-
'"loader resolve" function but got "undefined"'
7+
code: 'ERR_INVALID_RETURN_PROPERTY_VALUE',
8+
message: 'Expected string to be returned for the "format" from the '+
9+
'"loader resolve" function but got type undefined.'
1010
}))
1111
.then(mustCall());

0 commit comments

Comments
(0)