Skip to content

Commit 327a8f7

Browse files
Aviv Kellertargos
Aviv Keller
authored andcommitted
test: fix invalid wasm test
PR-URL: #54935 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5b012f5 commit 327a8f7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

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

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Flags: --experimental-wasm-modules
2-
import { mustNotCall, spawnPromisified } from '../common/index.mjs';
2+
import { spawnPromisified } from '../common/index.mjs';
33
import * as fixtures from '../common/fixtures.mjs';
44
import { describe, it } from 'node:test';
5-
import { match, ok, strictEqual } from 'node:assert';
5+
import { match, strictEqual } from 'node:assert';
66

77
describe('extensionless ES modules within a "type": "module" package scope', {
88
concurrency: !process.env.TEST_PARALLEL,
@@ -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)