From 60ffa9f1b377a5cdc388878e64ab5f305150e068 Mon Sep 17 00:00:00 2001 From: Angelo Parziale Date: Fri, 1 Dec 2023 19:27:21 +0100 Subject: [PATCH] test: replace forEach to for.. test-webcrypto-export-import-cfrg.js PR-URL: https://github.com/nodejs/node/pull/50785 Reviewed-By: James M Snell Reviewed-By: Rafael Gonzaga --- test/parallel/test-webcrypto-export-import-cfrg.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-webcrypto-export-import-cfrg.js b/test/parallel/test-webcrypto-export-import-cfrg.js index 85a1319fa8cab4..144424ce01ded2 100644 --- a/test/parallel/test-webcrypto-export-import-cfrg.js +++ b/test/parallel/test-webcrypto-export-import-cfrg.js @@ -340,15 +340,14 @@ async function testImportRaw({ name, publicUsages }) { (async function() { const tests = []; - testVectors.forEach((vector) => { - [true, false].forEach((extractable) => { + for (const vector of testVectors) { + for (const extractable of [true, false]) { tests.push(testImportSpki(vector, extractable)); tests.push(testImportPkcs8(vector, extractable)); tests.push(testImportJwk(vector, extractable)); - }); + } tests.push(testImportRaw(vector)); - }); - + } await Promise.all(tests); })().then(common.mustCall());