Skip to content

Commit cc7938d

Browse files
author
Shikha Mehta
committed
test: replace foreach with for in test-https-simple.js
Fixes: nodejs#50818
1 parent 5b73da0 commit cc7938d

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)