Skip to content

Commit

Permalink
Update test/es-module/test-esm-detect-ambiguous.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: Geoffrey Booth <[email protected]>
  • Loading branch information
mertcanaltin and GeoffreyBooth authored Nov 30, 2024
1 parent 11d788e commit 2f8e7d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/es-module/test-esm-detect-ambiguous.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,7 @@ describe('Module syntax detection', { concurrency: !process.env.TEST_PARALLEL },
it('permits top-level `await` above import/export syntax', async () => {
const { stdout, stderr, code, signal } = await spawnPromisified(process.execPath, [
'--eval',
`
await Promise.resolve();
import "node:os";
console.log("executed");
`,
'await Promise.resolve(); import "node:os"; console.log("executed");',
]);

strictEqual(stderr, '');
Expand Down

0 comments on commit 2f8e7d4

Please sign in to comment.