From b1b6c44712b78e52b925fc4b0b593fec87935b16 Mon Sep 17 00:00:00 2001 From: Conor Watson Date: Fri, 24 Nov 2023 14:11:34 +0000 Subject: [PATCH] test: replace forEach with for of PR-URL: https://github.com/nodejs/node/pull/50594 Reviewed-By: Rafael Gonzaga Reviewed-By: Marco Ippolito Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-webcrypto-sign-verify-hmac.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-webcrypto-sign-verify-hmac.js b/test/parallel/test-webcrypto-sign-verify-hmac.js index 00b742dbfea5d1..5c2d8e6cd770ff 100644 --- a/test/parallel/test-webcrypto-sign-verify-hmac.js +++ b/test/parallel/test-webcrypto-sign-verify-hmac.js @@ -172,10 +172,10 @@ async function testSign({ hash, (async function() { const variations = []; - vectors.forEach((vector) => { + for (const vector of vectors) { variations.push(testVerify(vector)); variations.push(testSign(vector)); - }); + } await Promise.all(variations); })().then(common.mustCall());