Skip to content

Commit ba957a6

Browse files
authored
test: replace forEach with for-of in test-webcrypto-export-import-ec
PR-URL: #51249 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c9fe4b6 commit ba957a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-webcrypto-export-import-ec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,16 @@ async function testImportRaw({ name, publicUsages }, namedCurve) {
363363

364364
(async function() {
365365
const tests = [];
366-
testVectors.forEach((vector) => {
367-
curves.forEach((namedCurve) => {
368-
[true, false].forEach((extractable) => {
366+
for (const vector of testVectors) {
367+
for (const namedCurve of curves) {
368+
for (const extractable of [true, false]) {
369369
tests.push(testImportSpki(vector, namedCurve, extractable));
370370
tests.push(testImportPkcs8(vector, namedCurve, extractable));
371371
tests.push(testImportJwk(vector, namedCurve, extractable));
372-
});
372+
}
373373
tests.push(testImportRaw(vector, namedCurve));
374-
});
375-
});
374+
}
375+
}
376376

377377
await Promise.all(tests);
378378
})().then(common.mustCall());

0 commit comments

Comments
 (0)