Skip to content

Commit 4cc0818

Browse files
aduh95ruyadorno
authored andcommitted
test: add trailing commas in test/message
PR-URL: #46372 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b83c5d9 commit 4cc0818

10 files changed

+15
-16
lines changed

test/.eslintrc.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ overrides:
7979
- internet/*.js
8080
- js-native-api/*/*.js
8181
- known_issues/*.js
82-
- message/*.js
8382
- node-api/*/*.js
8483
- parallel/*.js
8584
- parallel/*.mjs

test/message/async_error_eval_cjs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ main();
2929
'-e',
3030
main,
3131
], {
32-
env: { ...process.env }
32+
env: { ...process.env },
3333
});
3434

3535
if (child.status !== 0) {

test/message/async_error_eval_esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ main();
3131
'-e',
3232
main,
3333
], {
34-
env: { ...process.env }
34+
env: { ...process.env },
3535
});
3636

3737
if (child.status !== 0) {

test/message/console_low_stack_space.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const consoleDescriptor = Object.getOwnPropertyDescriptor(global, 'console');
44
Object.defineProperty(global, 'console', {
55
configurable: true,
66
writable: true,
7-
value: {}
7+
value: {},
88
});
99

1010
require('../common');

test/message/test_runner_describe_it.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ it('custom inspect symbol fail', () => {
270270
[util.inspect.custom]() {
271271
return 'customized';
272272
},
273-
foo: 1
273+
foo: 1,
274274
};
275275

276276
throw obj;
@@ -281,7 +281,7 @@ it('custom inspect symbol that throws fail', () => {
281281
[util.inspect.custom]() {
282282
throw new Error('bad-inspect');
283283
},
284-
foo: 1
284+
foo: 1,
285285
};
286286

287287
throw obj;

test/message/test_runner_output.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ test('custom inspect symbol fail', () => {
303303
[util.inspect.custom]() {
304304
return 'customized';
305305
},
306-
foo: 1
306+
foo: 1,
307307
};
308308

309309
throw obj;
@@ -314,7 +314,7 @@ test('custom inspect symbol that throws fail', () => {
314314
[util.inspect.custom]() {
315315
throw new Error('bad-inspect');
316316
},
317-
foo: 1
317+
foo: 1,
318318
};
319319

320320
throw obj;

test/message/test_runner_test_name_pattern.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test('top level test enabled', common.mustCall(async (t) => {
2828
t.afterEach(common.mustCall());
2929
await t.test(
3030
'nested test runs because name includes PATTERN',
31-
common.mustCall()
31+
common.mustCall(),
3232
);
3333
}));
3434

test/message/util-inspect-error-cause.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ const cause5 = new Error('Object cause', {
1919
message: 'Unique',
2020
name: 'Error',
2121
stack: 'Error: Unique\n' +
22-
' at Module._compile (node:internal/modules/cjs/loader:827:30)'
23-
}
22+
' at Module._compile (node:internal/modules/cjs/loader:827:30)',
23+
},
2424
});
2525
const cause6 = new Error('undefined cause', {
26-
cause: undefined
26+
cause: undefined,
2727
});
2828

2929
console.log(cause4);

test/message/vm_dont_display_runtime_error.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ console.error('beginning');
3030
try {
3131
vm.runInThisContext('throw new Error("boo!")', {
3232
filename: 'test.vm',
33-
displayErrors: false
33+
displayErrors: false,
3434
});
3535
} catch {
3636
// Continue regardless of error.
@@ -40,7 +40,7 @@ console.error('middle');
4040

4141
vm.runInThisContext('throw new Error("boo!")', {
4242
filename: 'test.vm',
43-
displayErrors: false
43+
displayErrors: false,
4444
});
4545

4646
console.error('end');

test/message/vm_dont_display_syntax_error.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ console.error('beginning');
3030
try {
3131
vm.runInThisContext('var 5;', {
3232
filename: 'test.vm',
33-
displayErrors: false
33+
displayErrors: false,
3434
});
3535
} catch {
3636
// Continue regardless of error.
@@ -40,7 +40,7 @@ console.error('middle');
4040

4141
vm.runInThisContext('var 5;', {
4242
filename: 'test.vm',
43-
displayErrors: false
43+
displayErrors: false,
4444
});
4545

4646
console.error('end');

0 commit comments

Comments
 (0)