Skip to content

Commit 1cf3f8d

Browse files
niyashiyastargos
authored andcommitted
test: replace forEach with for..of in test-net-isipv6.js
PR-URL: #49823 Reviewed-By: Luigi Pinca <[email protected]>
1 parent b959d36 commit 1cf3f8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-net-isipv6.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ const v6not = [
235235
'02001:0000:1234:0000:0000:C1C0:ABCD:0876',
236236
];
237237

238-
v6.forEach((ip) => {
238+
for (const ip of v6) {
239239
assert.strictEqual(net.isIPv6(ip), true);
240-
});
240+
}
241241

242-
v6not.forEach((ip) => {
242+
for (const ip of v6not) {
243243
assert.strictEqual(net.isIPv6(ip), false);
244-
});
244+
}

0 commit comments

Comments
 (0)