Skip to content

Commit 2eeda3f

Browse files
jabali2004targos
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 1d52a57 commit 2eeda3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-getcipherinfo.js

+2-2
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 (const cipher of ciphers) {
2020
const info = getCipherInfo(cipher);
2121
assert(info);
2222
const info2 = getCipherInfo(info.nid);
2323
assert.deepStrictEqual(info, info2);
24-
});
24+
}
2525

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

0 commit comments

Comments
 (0)