Skip to content

Commit

Permalink
test: replace forEach with for of
Browse files Browse the repository at this point in the history
PR-URL: nodejs#50594
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
RBrNx authored and martenrichter committed Nov 26, 2023
1 parent b8b8044 commit 9027578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-webcrypto-sign-verify-hmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());

0 comments on commit 9027578

Please sign in to comment.