Skip to content

Commit 4dcbec5

Browse files
committed
use base URL in test
1 parent 5233238 commit 4dcbec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/es-module/test-esm-loader-with-source.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as fixtures from '../common/fixtures.mjs';
44
import assert from 'assert';
55

66
const { default: existingFileSource } = await import(fixtures.fileURL('es-modules', 'cjs-file.cjs'));
7-
const { default: noSuchFileSource } = await import('file:///no-such-file.cjs');
7+
const { default: noSuchFileSource } = await import(new URL('./no-such-file.cjs', import.meta.url));
88

99
assert.strictEqual(existingFileSource, 'no .cjs file was read to get this source');
1010
assert.strictEqual(noSuchFileSource, 'no .cjs file was read to get this source');

0 commit comments

Comments
 (0)