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 Dec 1, 2023
1 parent 2f40652 commit 60ffa9f
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 60ffa9f

Please sign in to comment.