Skip to content

Commit

Permalink
test: fix invalid wasm test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviv Keller authored and avivkeller committed Sep 14, 2024
1 parent d64835f commit cc05123
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/es-module/test-esm-extensionless-esm-and-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,7 @@ describe('extensionless Wasm within no package scope', { concurrency: !process.e
strictEqual(signal, null);
});

// This succeeds with `--experimental-default-type=module`
it('should error on import', async () => {
try {
await import(fixtures.fileURL('es-modules/noext-wasm'));
mustNotCall();
} catch (err) {
ok(err instanceof SyntaxError);
}
it('should run on import', async () => {
await import(fixtures.fileURL('es-modules/noext-wasm'));
});
});

0 comments on commit cc05123

Please sign in to comment.