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 <jasnell@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
  • Loading branch information
aparzi authored and richardlau committed Mar 25, 2024
1 parent 2acbcbd commit 1c28db8
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 1c28db8

Please sign in to comment.