Skip to content

Commit dd4da4f

Browse files
committed
test: Replaced forEach with for..of in test-net-isipv6.js
1 parent e329a11 commit dd4da4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/parallel/test-net-isipv6.js

Lines changed: 4 additions & 4 deletions
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)