Skip to content

Commit e65cc6c

Browse files
committed
fix lint
1 parent a60b3e0 commit e65cc6c

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

test/es-module/test-esm-tla-syntax-errors-not-recognized-as-tla-error.mjs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,29 @@ describe('maybe top-level await syntax errors that are not recognized as top-lev
5050
});
5151

5252
it('should throw the error for unrelated syntax errors', async () => {
53-
const expression = "foo bar";
54-
const wrapperExpressions = [
55-
[`function callSyntaxError() {}; callSyntaxError(${expression});`, /missing \) after argument list/],
56-
[`if (${expression}) {}`, /Unexpected identifier/],
57-
[`{ key: ${expression} }`, /Unexpected identifier/],
58-
[`[${expression}]`, /Unexpected identifier/],
59-
[`(${expression})`, /Unexpected identifier/],
60-
[`const ${expression} = 1;`, /Missing initializer in const declaration/],
61-
[`console.log('PI: ' Math.PI);`, /missing \) after argument list/],
62-
[`callAwait(await "" "");`, /missing \) after argument list/]
63-
];
53+
const expression = 'foo bar';
54+
const wrapperExpressions = [
55+
[`function callSyntaxError() {}; callSyntaxError(${expression});`, /missing \) after argument list/],
56+
[`if (${expression}) {}`, /Unexpected identifier/],
57+
[`{ key: ${expression} }`, /Unexpected identifier/],
58+
[`[${expression}]`, /Unexpected identifier/],
59+
[`(${expression})`, /Unexpected identifier/],
60+
[`const ${expression} = 1;`, /Missing initializer in const declaration/],
61+
[`console.log('PI: ' Math.PI);`, /missing \) after argument list/],
62+
[`callAwait(await "" "");`, /missing \) after argument list/],
63+
];
6464

65-
for (const [wrapperExpression, error] of wrapperExpressions) {
66-
const { code, signal, stdout, stderr } = await spawnPromisified(process.execPath, [
67-
'--eval',
68-
`
65+
for (const [wrapperExpression, error] of wrapperExpressions) {
66+
const { code, signal, stdout, stderr } = await spawnPromisified(process.execPath, [
67+
'--eval',
68+
`
6969
${wrapperExpression}
7070
`,
71-
]);
72-
match(stderr, error);
73-
strictEqual(stdout, '');
74-
strictEqual(code, 1);
75-
strictEqual(signal, null);
76-
}
71+
]);
72+
match(stderr, error);
73+
strictEqual(stdout, '');
74+
strictEqual(code, 1);
75+
strictEqual(signal, null);
76+
}
7777
});
7878
});

0 commit comments

Comments
 (0)