Skip to content

Commit 81886c6

Browse files
niyashiyastargos
authored andcommitted
test: replace forEach with for..of in test-http-url
PR-URL: #49840 Reviewed-By: Luigi Pinca <[email protected]>
1 parent d164e53 commit 81886c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-url.parse-only-support-http-https-protocol.js

+2-2
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)