Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacnaughton committed Nov 30, 2023
1 parent e71c1ee commit 91f780c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/es-module/test-esm-loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ try {
} catch ({ code, message }) {
assert.strictEqual(code, 'ERR_INVALID_RETURN_PROPERTY_VALUE');
assert.match(message, /"source"/);
assert.match(message, /"load"/);
assert.match(message, /got null/);
assert.match(message, /'load'/);
assert.match(message, /got type bigint/);
}

await import('../fixtures/es-module-loaders/js-as-esm.js')
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/es-module-loaders/hooks-custom.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function load(url, context, next) {
return {
format: 'commonjs',
shortCircuit: true,
source: null,
source: 1n,
};
}

Expand Down

0 comments on commit 91f780c

Please sign in to comment.