Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b28fd37

Browse filesBrowse files
addaleaxtargos
authored andcommitted
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 <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 29299cc commit b28fd37
Copy full SHA for b28fd37

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/es-module/test-esm-loader-invalid-format.mjs
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.