mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
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());
|
||||
Reference in new issue
Block a user