Skip to content

Commit cc05123

Browse files
committed
test: fix invalid wasm test
1 parent d64835f commit cc05123

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/es-module/test-esm-extensionless-esm-and-wasm.mjs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,7 @@ describe('extensionless Wasm within no package scope', { concurrency: !process.e
9191
strictEqual(signal, null);
9292
});
9393

94-
// This succeeds with `--experimental-default-type=module`
95-
it('should error on import', async () => {
96-
try {
97-
await import(fixtures.fileURL('es-modules/noext-wasm'));
98-
mustNotCall();
99-
} catch (err) {
100-
ok(err instanceof SyntaxError);
101-
}
94+
it('should run on import', async () => {
95+
await import(fixtures.fileURL('es-modules/noext-wasm'));
10296
});
10397
});

0 commit comments

Comments
 (0)