Skip to content

Commit 9950203

Browse files
jabali2004UlisesGascon
authored andcommitted
test: replace forEach with for of
PR-URL: #50597 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 03ba28f commit 9950203

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-crypto-getcipherinfo.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ const ciphers = getCiphers();
1616
assert.strictEqual(getCipherInfo(-1),undefined);
1717
assert.strictEqual(getCipherInfo('cipher that does not exist'),undefined);
1818

19-
ciphers.forEach((cipher)=>{
19+
for(constcipherofciphers){
2020
constinfo=getCipherInfo(cipher);
2121
assert(info);
2222
constinfo2=getCipherInfo(info.nid);
2323
assert.deepStrictEqual(info,info2);
24-
});
24+
}
2525

2626
constinfo=getCipherInfo('aes-128-cbc');
2727
assert.strictEqual(info.name,'aes-128-cbc');

0 commit comments

Comments
 (0)