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 a66e7ca

Browse filesBrowse files
aduh95MylesBorins
authored andcommitted
test: add trailing commas in test/internet
PR-URL: #46407 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 7e7e2d0 commit a66e7ca
Copy full SHA for a66e7ca
Expand file treeCollapse file tree

18 files changed

+56
-57
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
@@ -76,7 +76,6 @@ overrides:
7676
- files:
7777
- es-module/*.js
7878
- es-module/*.mjs
79-
- internet/*.js
8079
- js-native-api/*/*.js
8180
- known_issues/*.js
8281
- parallel/*.js
Collapse file

‎test/internet/test-corepack-yarn-install.js‎

Copy file name to clipboardExpand all lines: test/internet/test-corepack-yarn-install.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ const corepackYarnPath = path.join(
2525
'deps',
2626
'corepack',
2727
'dist',
28-
'yarn.js'
28+
'yarn.js',
2929
);
3030

3131
const pkgContent = JSON.stringify({
3232
dependencies: {
33-
'package-name': fixtures.path('packages/main')
34-
}
33+
'package-name': fixtures.path('packages/main'),
34+
},
3535
});
3636

3737
const pkgPath = path.join(installDir, 'package.json');
@@ -46,7 +46,7 @@ const env = { ...process.env,
4646

4747
exec(`${process.execPath} ${corepackYarnPath} install`, {
4848
cwd: installDir,
49-
env: env
49+
env: env,
5050
}, common.mustCall(handleExit));
5151

5252
function handleExit(error, stdout, stderr) {
Collapse file

‎test/internet/test-dgram-broadcast-multi-process.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dgram-broadcast-multi-process.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ if (process.argv[2] !== 'child') {
166166

167167
const sendSocket = dgram.createSocket({
168168
type: 'udp4',
169-
reuseAddr: true
169+
reuseAddr: true,
170170
});
171171

172172
// Bind the address explicitly for sending
@@ -203,7 +203,7 @@ if (process.argv[2] !== 'child') {
203203
LOCAL_BROADCAST_HOST, common.PORT);
204204

205205
process.nextTick(sendSocket.sendNext);
206-
}
206+
},
207207
);
208208
};
209209

@@ -219,7 +219,7 @@ if (process.argv[2] === 'child') {
219219
const receivedMessages = [];
220220
const listenSocket = dgram.createSocket({
221221
type: 'udp4',
222-
reuseAddr: true
222+
reuseAddr: true,
223223
});
224224

225225
listenSocket.on('message', (buf, rinfo) => {
Collapse file

‎test/internet/test-dgram-membership.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dgram-membership.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const setup = dgram.createSocket.bind(dgram, { type: 'udp4', reuseAddr: true });
1919
const socket = setup();
2020
assert.throws(
2121
() => { socket.dropMembership(multicastAddress); },
22-
/^Error: dropMembership EADDRNOTAVAIL$/
22+
/^Error: dropMembership EADDRNOTAVAIL$/,
2323
);
2424
socket.close();
2525
}
Collapse file

‎test/internet/test-dgram-multicast-multi-process.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dgram-multicast-multi-process.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ if (process.argv[2] !== 'child') {
188188
buf.toString(),
189189
LOCAL_BROADCAST_HOST, common.PORT);
190190
process.nextTick(sendSocket.sendNext);
191-
}
191+
},
192192
);
193193
};
194194
}
@@ -197,7 +197,7 @@ if (process.argv[2] === 'child') {
197197
const receivedMessages = [];
198198
const listenSocket = dgram.createSocket({
199199
type: 'udp4',
200-
reuseAddr: true
200+
reuseAddr: true,
201201
});
202202

203203
listenSocket.on('listening', function() {
Collapse file

‎test/internet/test-dgram-multicast-set-interface-lo.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dgram-multicast-set-interface-lo.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const networkInterfaces = require('os').networkInterfaces();
2525
const fork = require('child_process').fork;
2626
const MULTICASTS = {
2727
IPv4: ['224.0.0.115', '224.0.0.116', '224.0.0.117'],
28-
IPv6: ['ff02::1:115', 'ff02::1:116', 'ff02::1:117']
28+
IPv6: ['ff02::1:115', 'ff02::1:116', 'ff02::1:117'],
2929
};
3030
const LOOPBACK = { IPv4: '127.0.0.1', IPv6: '::1' };
3131
const ANY = { IPv4: '0.0.0.0', IPv6: '::' };
@@ -201,7 +201,7 @@ if (process.argv[2] !== 'child') {
201201

202202
const sendSocket = dgram.createSocket({
203203
type: UDP[FAM],
204-
reuseAddr: true
204+
reuseAddr: true,
205205
});
206206

207207
// Don't bind the address explicitly when sending and start with
@@ -241,7 +241,7 @@ if (process.argv[2] !== 'child') {
241241
msg.mcast, PORTS[msg.mcast]);
242242

243243
process.nextTick(sendSocket.sendNext);
244-
}
244+
},
245245
);
246246
};
247247
}
@@ -256,7 +256,7 @@ if (process.argv[2] === 'child') {
256256
console.error(`pid ${process.pid} iface ${IFACE} MULTICAST ${MULTICAST}`);
257257
const listenSocket = dgram.createSocket({
258258
type: UDP[FAM],
259-
reuseAddr: true
259+
reuseAddr: true,
260260
});
261261

262262
listenSocket.on('message', (buf, rinfo) => {
Collapse file

‎test/internet/test-dgram-multicast-ssm-multi-process.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dgram-multicast-ssm-multi-process.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ if (process.argv[2] !== 'child') {
182182
buf.toString(),
183183
GROUP_ADDRESS, common.PORT);
184184
process.nextTick(sendSocket.sendNext);
185-
}
185+
},
186186
);
187187
};
188188
}
@@ -191,7 +191,7 @@ if (process.argv[2] === 'child') {
191191
const receivedMessages = [];
192192
const listenSocket = dgram.createSocket({
193193
type: 'udp4',
194-
reuseAddr: true
194+
reuseAddr: true,
195195
});
196196

197197
listenSocket.on('listening', function() {
Collapse file

‎test/internet/test-dgram-multicast-ssmv6-multi-process.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dgram-multicast-ssmv6-multi-process.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ if (process.argv[2] !== 'child') {
182182
buf.toString(),
183183
GROUP_ADDRESS, common.PORT);
184184
process.nextTick(sendSocket.sendNext);
185-
}
185+
},
186186
);
187187
};
188188
}
@@ -191,7 +191,7 @@ if (process.argv[2] === 'child') {
191191
const receivedMessages = [];
192192
const listenSocket = dgram.createSocket({
193193
type: 'udp6',
194-
reuseAddr: true
194+
reuseAddr: true,
195195
});
196196

197197
listenSocket.on('listening', function() {
Collapse file

‎test/internet/test-dns-any.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dns-any.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const checkers = {
7878
assert.strictEqual(typeof r.priority, 'number');
7979
assert.strictEqual(typeof r.weight, 'number');
8080
assert.strictEqual(r.type, 'SRV');
81-
}
81+
},
8282
};
8383

8484
function TEST(f) {
Collapse file

‎test/internet/test-dns-idna2008.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dns-idna2008.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dns.lookup(
3434
}
3535
assert.ifError(err);
3636
assert.strictEqual(address, fixture.expectedAddress);
37-
})
37+
}),
3838
);
3939

4040
dns.promises.lookup(fixture.hostname, { family: fixture.family })

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.