| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | 1 | // Flags: --experimental-wasm-modules | |
| 2 | - import { mustNotCall, spawnPromisified } from '../common/index.mjs'; | ||
| 2 | + import { spawnPromisified } from '../common/index.mjs'; | ||
| 3 | 3 | import * as fixtures from '../common/fixtures.mjs'; | |
| 4 | 4 | import { describe, it } from 'node:test'; | |
| 5 | - import { match, ok, strictEqual } from 'node:assert'; | ||
| 5 | + import { match, strictEqual } from 'node:assert'; | ||
| 6 | 6 | ||
| 7 | 7 | describe('extensionless ES modules within a "type": "module" package scope', { | |
| 8 | 8 | concurrency: !process.env.TEST_PARALLEL, | |
@@ -91,13 +91,7 @@ describe('extensionless Wasm within no package scope', { concurrency: !process.e | |||
| 91 | 91 | strictEqual(signal, null); | |
| 92 | 92 | }); | |
| 93 | 93 | ||
| 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')); | ||
| 102 | 96 | }); | |
| 103 | 97 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments