Skip to content

Commit 8ae0b25

Browse files
committed
test: replace forEach with for..of in test-http-url
1 parent e329a11 commit 8ae0b25

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)