Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2fe511b

Browse filesBrowse files
test: replace forEach() in test-net-perf_hooks with for of
PR-URL: #49831 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Joe Sepi <sepi@joesepi.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 42c37f2 commit 2fe511b
Copy full SHA for 2fe511b

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-net-perf_hooks.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-net-perf_hooks.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.