Skip to content

Commit e0d9d24

Browse files
committed
test: fix test-esm-import-meta-resolve
When the repo is cloned in a directory whose path contains URL-significant chars (`?`, `#`, or `%`), we should not fail the test.
1 parent 4b3d6ae commit e0d9d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/es-module/test-esm-import-meta-resolve.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ assert.deepStrictEqual(
4545
{ default: 'some://weird/protocol' },
4646
);
4747
assert.deepStrictEqual(
48-
{ ...await import(`data:text/javascript,export default import.meta.resolve("baz/", ${JSON.stringify(fixtures)})`) },
48+
{ ...await import(`data:text/javascript,export default import.meta.resolve("baz/", ${encodeURIComponent(JSON.stringify(fixtures))})`) },
4949
{ default: fixtures + 'node_modules/baz/' },
5050
);
5151
assert.deepStrictEqual(

0 commit comments

Comments
 (0)