Skip to content

Commit

Permalink
test: replace forEach to for.. test-webcrypto-export-import-cfrg.js
Browse files Browse the repository at this point in the history
PR-URL: #50785
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
  • Loading branch information
aparzi authored and targos committed Dec 4, 2023
1 parent 6a087ce commit 3a1c664
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/parallel/test-webcrypto-export-import-cfrg.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,14 @@ async function testImportRaw({ name, publicUsages }) {

(async function() {
const tests = [];
testVectors.forEach((vector) => {
[true, false].forEach((extractable) => {
for (const vector of testVectors) {
for (const extractable of [true, false]) {
tests.push(testImportSpki(vector, extractable));
tests.push(testImportPkcs8(vector, extractable));
tests.push(testImportJwk(vector, extractable));
});
}
tests.push(testImportRaw(vector));
});

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

Expand Down

0 comments on commit 3a1c664

Please sign in to comment.