From 8e7e48f2e4314f8779e869a1507c955aec9d8775 Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Mon, 25 Sep 2023 10:28:59 +0530 Subject: [PATCH] test: replaced forEach with for..of in test-http-url --- .../test-http-url.parse-only-support-http-https-protocol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-url.parse-only-support-http-https-protocol.js b/test/parallel/test-http-url.parse-only-support-http-https-protocol.js index 5537c898841694..3f6633075c6aec 100644 --- a/test/parallel/test-http-url.parse-only-support-http-https-protocol.js +++ b/test/parallel/test-http-url.parse-only-support-http-https-protocol.js @@ -34,7 +34,7 @@ const invalidUrls = [ 'f://some.host/path', ]; -for(const invalid of invalidUrls){ +for (const invalid of invalidUrls) { assert.throws( () => { http.request(url.parse(invalid)); }, {