Skip to content

Commit 9bb0852

Browse files
aduh95danielleadams
authored andcommitted
test: add trailing commas in test/known_issues
PR-URL: #46408 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 231f0ee commit 9bb0852

11 files changed

+14
-15
lines changed

test/.eslintrc.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ overrides:
7575
- es-module/*.js
7676
- es-module/*.mjs
7777
- js-native-api/*/*.js
78-
- known_issues/*.js
7978
- parallel/*.js
8079
- parallel/*.mjs
8180
- pummel/*.js

test/known_issues/test-dgram-bind-shared-ports-after-port-0.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ if (cluster.isPrimary) {
5151
socket1.on('error', PRT1 === 0 ? () => {} : assert.fail);
5252
socket1.bind(
5353
{ address: common.localhostIPv4, port: PRT1, exclusive: false },
54-
() => process.send({ message: 'success', port1: socket1.address().port })
54+
() => process.send({ message: 'success', port1: socket1.address().port }),
5555
);
5656
}

test/known_issues/test-http-path-contains-unicode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ server.listen(0, () => {
2626
http.request({
2727
port: server.address().port,
2828
path: expected,
29-
method: 'GET'
29+
method: 'GET',
3030
}, common.mustCall(function(res) {
3131
res.resume();
3232
})).on('error', function(e) {

test/known_issues/test-repl-require-context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const fixture = path('is-object.js');
1111
const r = repl.start({
1212
input: inputStream,
1313
output: outputStream,
14-
useGlobal: false
14+
useGlobal: false,
1515
});
1616

1717
let output = '';

test/known_issues/test-stdin-is-always-net.socket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (process.argv[2] === 'child') {
1414
const proc = spawn(
1515
process.execPath,
1616
[__filename, 'child'],
17-
{ stdio: 'ignore' }
17+
{ stdio: 'ignore' },
1818
);
1919
// To double-check this test, set stdio to 'pipe' and uncomment the line below.
2020
// proc.stderr.pipe(process.stderr);

test/known_issues/test-url-parse-conformance.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const url = require('url');
66
const assert = require('assert');
77
const fixtures = require('../common/fixtures');
88
const tests = require(
9-
fixtures.path('wpt', 'url', 'resources', 'urltestdata.json')
9+
fixtures.path('wpt', 'url', 'resources', 'urltestdata.json'),
1010
);
1111

1212
let failed = 0;

test/known_issues/test-vm-ownkeys.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const sym1 = Symbol('1');
88
const sym2 = Symbol('2');
99
const sandbox = {
1010
a: true,
11-
[sym1]: true
11+
[sym1]: true,
1212
};
1313
Object.defineProperty(sandbox, 'b', { value: true });
1414
Object.defineProperty(sandbox, sym2, { value: true });

test/known_issues/test-vm-ownpropertynames.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const sym1 = Symbol('1');
88
const sym2 = Symbol('2');
99
const sandbox = {
1010
a: true,
11-
[sym1]: true
11+
[sym1]: true,
1212
};
1313
Object.defineProperty(sandbox, 'b', { value: true });
1414
Object.defineProperty(sandbox, sym2, { value: true });

test/known_issues/test-vm-ownpropertysymbols.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const sym1 = Symbol('1');
88
const sym2 = Symbol('2');
99
const sandbox = {
1010
a: true,
11-
[sym1]: true
11+
[sym1]: true,
1212
};
1313
Object.defineProperty(sandbox, 'b', { value: true });
1414
Object.defineProperty(sandbox, sym2, { value: true });

test/known_issues/test-vm-timeout-escape-nexttick.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ for (let i = 0; i < 4; i++) {
3636
{
3737
hrtime,
3838
nextTick,
39-
loop
39+
loop,
4040
},
41-
{ timeout: common.platformTimeout(10) }
41+
{ timeout: common.platformTimeout(10) },
4242
);
4343
}, {
44-
code: 'ERR_SCRIPT_EXECUTION_TIMEOUT'
44+
code: 'ERR_SCRIPT_EXECUTION_TIMEOUT',
4545
});
4646
}

test/known_issues/test-vm-timeout-escape-queuemicrotask.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ assert.throws(() => {
3333
{
3434
hrtime,
3535
queueMicrotask,
36-
loop
36+
loop,
3737
},
38-
{ timeout, microtaskMode: 'afterScriptRun' }
38+
{ timeout, microtaskMode: 'afterScriptRun' },
3939
);
4040
}, {
4141
code: 'ERR_SCRIPT_EXECUTION_TIMEOUT',
42-
message: `Script execution timed out after ${timeout}ms`
42+
message: `Script execution timed out after ${timeout}ms`,
4343
});

0 commit comments

Comments
 (0)