Skip to content

Commit

Permalink
de-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Jul 24, 2022
1 parent 7492a18 commit efb8000
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/es-module/test-esm-loader-thenable.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mustCall } from '../common/index.mjs';
import '../common/index.mjs';
import { fileURL, path } from '../common/fixtures.mjs';
import { match, ok, notStrictEqual, strictEqual } from 'assert';
import { execPath } from 'node:process';
Expand All @@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs';

describe('ESM: thenable loader hooks', { concurrency: true }, () => {
it('should behave as a normal promise resolution', async () => {
const { code, stderr} = await spawn(execPath, [
const { code, stderr } = await spawn(execPath, [
'--experimental-loader',
fileURL('es-module-loaders', 'thenable-load-hook.mjs').href,
path('es-modules', 'test-esm-ok.mjs'),
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-esm-loader-with-syntax-error.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs';

describe('ESM: loader with syntax error', { concurrency: true }, () => {
it('should crash the node process', async () => {
const { code, stderr, } = await spawn(execPath, [
const { code, stderr } = await spawn(execPath, [
'--experimental-loader',
fileURL('es-module-loaders', 'syntax-error.mjs').href,
path('print-error-message.js'),
Expand Down
3 changes: 1 addition & 2 deletions test/es-module/test-esm-non-js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { describe, it } from 'node:test';

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

describe('ESM: non-js extensions fail', { concurrency: true}, () => {
describe('ESM: non-js extensions fail', { concurrency: true }, () => {
it(async () => {
const { code, stderr, signal } = await spawn(execPath, [
'--input-type=module',
Expand All @@ -19,4 +19,3 @@ describe('ESM: non-js extensions fail', { concurrency: true}, () => {
strictEqual(signal, null);
});
});

2 changes: 1 addition & 1 deletion test/es-module/test-esm-specifiers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('ESM: specifier-resolution=node', { concurrency: true }, () => {
'strictEqual(explicit, "esm");',
'strictEqual(implicit, "cjs");',
'strictEqual(implicitModule, "cjs");',
].join('\n')
].join('\n'),
]);

strictEqual(stderr, '');
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-esm-unknown-or-no-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const { describe, it } = require('node:test');
) {
it('should throw', async () => {
const entry = fixtures.path(fixturePath);
const { code, signal, stderr, stdout } = await spawn(process.execPath, [entry]);
const { code, signal, stderr, stdout } = await spawn(execPath, [entry]);

assert.strictEqual(code, 1);
assert.strictEqual(signal, null);
Expand Down
4 changes: 2 additions & 2 deletions test/es-module/test-esm-wasm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import spawn from './helper.spawnAsPromised.mjs';

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

strictEqual(stderr, '');
Expand Down

0 comments on commit efb8000

Please sign in to comment.