Skip to content

Commit f3a2e1c

Browse files
de-lint
1 parent 173279c commit f3a2e1c

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

test/es-module/test-esm-loader-thenable.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mustCall } from '../common/index.mjs';
1+
import '../common/index.mjs';
22
import { fileURL, path } from '../common/fixtures.mjs';
33
import { match, ok, notStrictEqual, strictEqual } from 'assert';
44
import { execPath } from 'node:process';
@@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs';
99

1010
describe('ESM: thenable loader hooks', { concurrency: true }, () => {
1111
it('should behave as a normal promise resolution', async () => {
12-
const { code, stderr} = await spawn(execPath, [
12+
const { code, stderr } = await spawn(execPath, [
1313
'--experimental-loader',
1414
fileURL('es-module-loaders', 'thenable-load-hook.mjs').href,
1515
path('es-modules', 'test-esm-ok.mjs'),

test/es-module/test-esm-loader-with-syntax-error.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs';
99

1010
describe('ESM: loader with syntax error', { concurrency: true }, () => {
1111
it('should crash the node process', async () => {
12-
const { code, stderr, } = await spawn(execPath, [
12+
const { code, stderr } = await spawn(execPath, [
1313
'--experimental-loader',
1414
fileURL('es-module-loaders', 'syntax-error.mjs').href,
1515
path('print-error-message.js'),

test/es-module/test-esm-non-js.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { describe, it } from 'node:test';
66

77
import spawn from './helper.spawnAsPromised.mjs';
88

9-
describe('ESM: non-js extensions fail', { concurrency: true}, () => {
9+
describe('ESM: non-js extensions fail', { concurrency: true }, () => {
1010
it(async () => {
1111
const { code, stderr, signal } = await spawn(execPath, [
1212
'--input-type=module',
@@ -19,4 +19,3 @@ describe('ESM: non-js extensions fail', { concurrency: true}, () => {
1919
strictEqual(signal, null);
2020
});
2121
});
22-

test/es-module/test-esm-specifiers.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('ESM: specifier-resolution=node', { concurrency: true }, () => {
2828
'strictEqual(explicit, "esm");',
2929
'strictEqual(implicit, "cjs");',
3030
'strictEqual(implicitModule, "cjs");',
31-
].join('\n')
31+
].join('\n'),
3232
]);
3333

3434
strictEqual(stderr, '');

test/es-module/test-esm-unknown-or-no-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const { describe, it } = require('node:test');
2424
) {
2525
it('should throw', async () => {
2626
const entry = fixtures.path(fixturePath);
27-
const { code, signal, stderr, stdout } = await spawn(process.execPath, [entry]);
27+
const { code, signal, stderr, stdout } = await spawn(execPath, [entry]);
2828

2929
assert.strictEqual(code, 1);
3030
assert.strictEqual(signal, null);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs';
99

1010
describe('ESM: WASM modules', { concurrency: true }, () => {
1111
it('should load exports', async () => {
12-
const { code, stderr, stdout} = await spawn(execPath, [
12+
const { code, stderr, stdout } = await spawn(execPath, [
1313
'--no-warnings',
1414
'--experimental-wasm-modules',
1515
'--input-type=module',
@@ -23,7 +23,7 @@ describe('ESM: WASM modules', { concurrency: true }, () => {
2323
'strictEqual(addImported(0), 42);',
2424
'strictEqual(state, "WASM JS Function Executed");',
2525
'strictEqual(addImported(1), 43);',
26-
].join('\n')
26+
].join('\n'),
2727
]);
2828

2929
strictEqual(stderr, '');

0 commit comments

Comments
 (0)