Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4cc0818

Browse filesBrowse files
aduh95ruyadorno
authored andcommitted
test: add trailing commas in test/message
PR-URL: #46372 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b83c5d9 commit 4cc0818
Copy full SHA for 4cc0818
Expand file treeCollapse file tree

10 files changed

+15
-16
lines changed
Open diff view settings
Collapse file

‎test/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: test/.eslintrc.yaml
-1Lines changed: 0 additions & 1 deletion
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
Collapse file

‎test/message/async_error_eval_cjs.js‎

Copy file name to clipboardExpand all lines: test/message/async_error_eval_cjs.js
+1-1Lines changed: 1 addition & 1 deletion
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) {
Collapse file

‎test/message/async_error_eval_esm.js‎

Copy file name to clipboardExpand all lines: test/message/async_error_eval_esm.js
+1-1Lines changed: 1 addition & 1 deletion
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) {
Collapse file

‎test/message/console_low_stack_space.js‎

Copy file name to clipboardExpand all lines: test/message/console_low_stack_space.js
+1-1Lines changed: 1 addition & 1 deletion
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');
Collapse file

‎test/message/test_runner_describe_it.js‎

Copy file name to clipboardExpand all lines: test/message/test_runner_describe_it.js
+2-2Lines changed: 2 additions & 2 deletions
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;
Collapse file

‎test/message/test_runner_output.js‎

Copy file name to clipboardExpand all lines: test/message/test_runner_output.js
+2-2Lines changed: 2 additions & 2 deletions
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;
Collapse file

‎test/message/test_runner_test_name_pattern.js‎

Copy file name to clipboardExpand all lines: test/message/test_runner_test_name_pattern.js
+1-1Lines changed: 1 addition & 1 deletion
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

Collapse file

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

Copy file name to clipboardExpand all lines: test/message/util-inspect-error-cause.js
+3-3Lines changed: 3 additions & 3 deletions
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);
Collapse file

‎test/message/vm_dont_display_runtime_error.js‎

Copy file name to clipboardExpand all lines: test/message/vm_dont_display_runtime_error.js
+2-2Lines changed: 2 additions & 2 deletions
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');
Collapse file

‎test/message/vm_dont_display_syntax_error.js‎

Copy file name to clipboardExpand all lines: test/message/vm_dont_display_syntax_error.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.