Skip to content

Commit 9d76de1

Browse files
Shikha MehtaRafaelGSS
Shikha Mehta
authored andcommitted
test: replace foreach with for in test-https-simple.js
Fixes: #50818 PR-URL: #49793 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Jithil P Ponnan <jithil@outlook.com>
1 parent bc31375 commit 9d76de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-https-simple.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ const serverCallback = common.mustCall(function(req, res) {
4545
});
4646

4747
const invalid_options = [ 'foo', 42, true, [] ];
48-
invalid_options.forEach((option) => {
48+
for (const option of invalid_options) {
4949
assert.throws(() => {
5050
new https.Server(option);
5151
}, {
5252
code: 'ERR_INVALID_ARG_TYPE',
5353
});
54-
});
54+
}
5555

5656
const server = https.createServer(options, serverCallback);
5757

0 commit comments

Comments
 (0)