From b990ef57031b0087bbdec4f040df74f8dced8f98 Mon Sep 17 00:00:00 2001 From: jabali2004 <32802935+jabali2004@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:07:05 +0000 Subject: [PATCH] test: replace forEach with for of --- test/parallel/test-crypto-getcipherinfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-getcipherinfo.js b/test/parallel/test-crypto-getcipherinfo.js index 98d2a52eceac4b..64b79fc36ccf4d 100644 --- a/test/parallel/test-crypto-getcipherinfo.js +++ b/test/parallel/test-crypto-getcipherinfo.js @@ -16,12 +16,12 @@ const ciphers = getCiphers(); assert.strictEqual(getCipherInfo(-1), undefined); assert.strictEqual(getCipherInfo('cipher that does not exist'), undefined); -ciphers.forEach((cipher) => { +for (const cipher of ciphers) { const info = getCipherInfo(cipher); assert(info); const info2 = getCipherInfo(info.nid); assert.deepStrictEqual(info, info2); -}); +} const info = getCipherInfo('aes-128-cbc'); assert.strictEqual(info.name, 'aes-128-cbc');