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 2449247

Browse filesBrowse files
niyashiyaslpinca
authored andcommitted
test: replace forEach with for..of in test-http-url
PR-URL: #49840 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 6b599a3 commit 2449247
Copy full SHA for 2449247

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-http-url.parse-only-support-http-https-protocol.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-url.parse-only-support-http-https-protocol.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const invalidUrls = [
3434
'f://some.host/path',
3535
];
3636

37-
invalidUrls.forEach((invalid) => {
37+
for (const invalid of invalidUrls) {
3838
assert.throws(
3939
() => { http.request(url.parse(invalid)); },
4040
{
4141
code: 'ERR_INVALID_PROTOCOL',
4242
name: 'TypeError'
4343
}
4444
);
45-
});
45+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.