Skip to content

Commit b990ef5

Browse files
committed
test: replace forEach with for of
1 parent 036c89f commit b990ef5

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)