Skip to content

Commit 379a725

Browse files
niyashiyastargos
authored andcommitted
test: replace forEach with for..of in test-net-isipv4.js
PR-URL: #49822 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent b55fcd7 commit 379a725

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-net-isipv4.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const v4not = [
3737
'192.168.0.2000000000',
3838
];
3939

40-
v4.forEach((ip) => {
40+
for (const ip of v4) {
4141
assert.strictEqual(net.isIPv4(ip), true);
42-
});
42+
}
4343

44-
v4not.forEach((ip) => {
44+
for (const ip of v4not) {
4545
assert.strictEqual(net.isIPv4(ip), false);
46-
});
46+
}

0 commit comments

Comments
 (0)