Skip to content

Commit c3c7ed8

Browse files
linting & add/correct test descriptions
1 parent 41634f4 commit c3c7ed8

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

test/es-module/test-esm-cjs-main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ mustCall(async () => {
1212

1313
describe('ESM: importing CJS', () => {
1414
it('should work', async () => {
15-
const { code, signal, stdout } = await spawn(
16-
execPath,
17-
[fixtures.path('/es-modules/cjs.js')],
18-
);
15+
const { code, signal, stdout } = await spawn(execPath, [
16+
fixtures.path('/es-modules/cjs.js'),
17+
]);
1918

2019
assert.strictEqual(code, 0);
2120
assert.strictEqual(signal, null);

test/es-module/test-esm-encoded-path-native.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ mustCall(async () => {
1212

1313
describe('ESM: importing an encoded path', () => {
1414
it('should throw', async () => {
15-
const { code } = await spawn(execPath, [fixtures.path('es-module-url/native.mjs')]);
15+
const { code } = await spawn(execPath, [
16+
fixtures.path('es-module-url/native.mjs'),
17+
]);
1618

1719
assert.strictEqual(code, 1);
1820
});

test/es-module/test-esm-invalid-pjson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { describe, it } = require('node:test');
1010
mustCall(async () => {
1111
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');
1212

13-
describe('ESM: pson', { concurrency: true }, () => {
13+
describe('ESM: Package.json', { concurrency: true }, () => {
1414
it('should throw on invalid pson', async () => {
1515
const entry = fixtures.path('/es-modules/import-invalid-pjson.mjs');
1616
const invalidJson = fixtures.path('/node_modules/invalid-pjson/package.json');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import secret from '../fixtures/experimental.json' assert { type: 'json' };
88
import spawn from './helper.spawnAsPromised.mjs';
99

1010

11-
describe('ESM: ', () => {
11+
describe('ESM: importing JSON', () => {
1212
it('should load JSON', () => {
1313
assert.strictEqual(secret.ofLife, 42);
1414
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const commonArgs = [
1818
commonInput,
1919
];
2020

21-
describe('ESM: chained loaders', { concurrency: true }, () => {
21+
describe('ESM: loader chaining', { concurrency: true }, () => {
2222
it('should load unadulterated source when there are no loaders', async () => {
2323
const { code, stderr, stdout } = await spawn(
2424
execPath,

test/es-module/test-esm-loader-http-imports.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ const {
4343
port,
4444
} = server.address();
4545

46-
console.log({ host, port });
47-
4846
/**
4947
* ! If more cases are added to this test, they cannot (yet) be concurrent because there is no
5048
* ! `afterAll` teardown in which to close the server.

0 commit comments

Comments
 (0)