Skip to content

Commit 57c6455

Browse files
cricciardiRafaelGSS
authored andcommitted
test: replace forEach with for-of in test-webcrypto-export-import-ec
PR-URL: #51249 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 88e8651 commit 57c6455

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,16 @@ async function testImportRaw({name, publicUsages }, namedCurve){
363363

364364
(asyncfunction(){
365365
consttests=[];
366-
testVectors.forEach((vector)=>{
367-
curves.forEach((namedCurve)=>{
368-
[true,false].forEach((extractable)=>{
366+
for(constvectoroftestVectors){
367+
for(constnamedCurveofcurves){
368+
for(constextractableof[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
awaitPromise.all(tests);
378378
})().then(common.mustCall());

0 commit comments

Comments
(0)