Skip to content

Commit 231f0ee

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

18 files changed

+56
-57
lines changed

‎test/.eslintrc.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ overrides:
7474
- files:
7575
- es-module/*.js
7676
- es-module/*.mjs
77-
- internet/*.js
7877
- js-native-api/*/*.js
7978
- known_issues/*.js
8079
- parallel/*.js

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

Lines 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
constpkgContent=JSON.stringify({
3232
dependencies: {
33-
'package-name': fixtures.path('packages/main')
34-
}
33+
'package-name': fixtures.path('packages/main'),
34+
},
3535
});
3636

3737
constpkgPath=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
functionhandleExit(error,stdout,stderr){

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ if (process.argv[2] !== 'child'){
166166

167167
constsendSocket=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
constreceivedMessages=[];
220220
constlistenSocket=dgram.createSocket({
221221
type: 'udp4',
222-
reuseAddr: true
222+
reuseAddr: true,
223223
});
224224

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

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

Lines 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
constsocket=setup();
2020
assert.throws(
2121
()=>{socket.dropMembership(multicastAddress);},
22-
/^Error:dropMembershipEADDRNOTAVAIL$/
22+
/^Error:dropMembershipEADDRNOTAVAIL$/,
2323
);
2424
socket.close();
2525
}

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

Lines 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
constreceivedMessages=[];
198198
constlistenSocket=dgram.createSocket({
199199
type: 'udp4',
200-
reuseAddr: true
200+
reuseAddr: true,
201201
});
202202

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const networkInterfaces = require('os').networkInterfaces();
2525
constfork=require('child_process').fork;
2626
constMULTICASTS={
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
constLOOPBACK={IPv4: '127.0.0.1',IPv6: '::1'};
3131
constANY={IPv4: '0.0.0.0',IPv6: '::'};
@@ -201,7 +201,7 @@ if (process.argv[2] !== 'child'){
201201

202202
constsendSocket=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
constlistenSocket=dgram.createSocket({
258258
type: UDP[FAM],
259-
reuseAddr: true
259+
reuseAddr: true,
260260
});
261261

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

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

Lines 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
constreceivedMessages=[];
192192
constlistenSocket=dgram.createSocket({
193193
type: 'udp4',
194-
reuseAddr: true
194+
reuseAddr: true,
195195
});
196196

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

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

Lines 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
constreceivedMessages=[];
192192
constlistenSocket=dgram.createSocket({
193193
type: 'udp6',
194-
reuseAddr: true
194+
reuseAddr: true,
195195
});
196196

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const checkers ={
7878
assert.strictEqual(typeofr.priority,'number');
7979
assert.strictEqual(typeofr.weight,'number');
8080
assert.strictEqual(r.type,'SRV');
81-
}
81+
},
8282
};
8383

8484
functionTEST(f){

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

Lines 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)