test: replace forEach with for of

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Conor Watson authored and GitHub committed 2023-11-24 14:11:34 +00:00
1 parent 8c72210457
commit 303654c501
1 file changed
+2 -2
@@ -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());