Skip to content

Commit

Permalink
test: fix ESM test
Browse files Browse the repository at this point in the history
The previously landed commit was broken and it’s too late
to force-push. Fixing up the test seems to work.

Refs: nodejs#21352

PR-URL: nodejs#21605
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
addaleax committed Jun 30, 2018
1 parent 1bf42f4 commit deff8db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/es-module/test-esm-loader-invalid-format.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

0 comments on commit deff8db

Please sign in to comment.