test: add trailing commas in test/message

PR-URL: https://github.com/nodejs/node/pull/46372
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel authored and Juan José Arboleda committed 2023-03-04 23:03:31 -05:00
1 parent ed564a9985
commit f2ebe66fda
10 files changed
+15 -16

No files matched your search

-1
View File
@@ -77,7 +77,6 @@ overrides:
- internet/*.js
- js-native-api/*/*.js
- known_issues/*.js
- message/*.js
- node-api/*/*.js
- parallel/*.js
- parallel/*.mjs
+1 -1
View File
@@ -29,7 +29,7 @@ main();
'-e',
main,
], {
env: { ...process.env }
env: { ...process.env },
});
if (child.status !== 0) {
+1 -1
View File
@@ -31,7 +31,7 @@ main();
'-e',
main,
], {
env: { ...process.env }
env: { ...process.env },
});
if (child.status !== 0) {
+1 -1
View File
@@ -4,7 +4,7 @@ const consoleDescriptor = Object.getOwnPropertyDescriptor(global, 'console');
Object.defineProperty(global, 'console', {
configurable: true,
writable: true,
value: {}
value: {},
});
require('../common');
+2 -2
View File
@@ -270,7 +270,7 @@ it('custom inspect symbol fail', () => {
[util.inspect.custom]() {
return 'customized';
},
foo: 1
foo: 1,
};
throw obj;
@@ -281,7 +281,7 @@ it('custom inspect symbol that throws fail', () => {
[util.inspect.custom]() {
throw new Error('bad-inspect');
},
foo: 1
foo: 1,
};
throw obj;
+2 -2
View File
@@ -303,7 +303,7 @@ test('custom inspect symbol fail', () => {
[util.inspect.custom]() {
return 'customized';
},
foo: 1
foo: 1,
};
throw obj;
@@ -314,7 +314,7 @@ test('custom inspect symbol that throws fail', () => {
[util.inspect.custom]() {
throw new Error('bad-inspect');
},
foo: 1
foo: 1,
};
throw obj;
@@ -28,7 +28,7 @@ test('top level test enabled', common.mustCall(async (t) => {
t.afterEach(common.mustCall());
await t.test(
'nested test runs because name includes PATTERN',
common.mustCall()
common.mustCall(),
);
}));
+3 -3
View File
@@ -19,11 +19,11 @@ const cause5 = new Error('Object cause', {
message: 'Unique',
name: 'Error',
stack: 'Error: Unique\n' +
' at Module._compile (node:internal/modules/cjs/loader:827:30)'
}
' at Module._compile (node:internal/modules/cjs/loader:827:30)',
},
});
const cause6 = new Error('undefined cause', {
cause: undefined
cause: undefined,
});
console.log(cause4);
@@ -30,7 +30,7 @@ console.error('beginning');
try {
vm.runInThisContext('throw new Error("boo!")', {
filename: 'test.vm',
displayErrors: false
displayErrors: false,
});
} catch {
// Continue regardless of error.
@@ -40,7 +40,7 @@ console.error('middle');
vm.runInThisContext('throw new Error("boo!")', {
filename: 'test.vm',
displayErrors: false
displayErrors: false,
});
console.error('end');
+2 -2
View File
@@ -30,7 +30,7 @@ console.error('beginning');
try {
vm.runInThisContext('var 5;', {
filename: 'test.vm',
displayErrors: false
displayErrors: false,
});
} catch {
// Continue regardless of error.
@@ -40,7 +40,7 @@ console.error('middle');
vm.runInThisContext('var 5;', {
filename: 'test.vm',
displayErrors: false
displayErrors: false,
});
console.error('end');