Skip to content

Commit 9d76de1

Browse files
Shikha MehtaRafaelGSS
authored andcommitted
test: replace foreach with for in test-https-simple.js
Fixes: #50818 PR-URL: #49793 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Jithil P Ponnan <[email protected]>
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‎

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

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

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

0 commit comments

Comments
(0)