Skip to content

Commit c3cdaa7

Browse files
test: replace forEach() in test-net-perf_hooks with for of
1 parent 740ca54 commit c3cdaa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-net-perf_hooks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ obs.observe({ type: 'net' });
4949

5050
process.on('exit', () => {
5151
assert.strictEqual(entries.length, 1);
52-
entries.forEach((entry) => {
52+
for (const entry of entries) {
5353
assert.strictEqual(entry.name, 'connect');
5454
assert.strictEqual(entry.entryType, 'net');
5555
assert.strictEqual(typeof entry.startTime, 'number');
5656
assert.strictEqual(typeof entry.duration, 'number');
5757
assert.strictEqual(!!entry.detail.host, true);
5858
assert.strictEqual(!!entry.detail.port, true);
59-
});
59+
}
6060
});

0 commit comments

Comments
 (0)