Skip to content

Commit 1c28db8

Browse files
aparzirichardlau
authored andcommitted
test: replace forEach to for.. test-webcrypto-export-import-cfrg.js
PR-URL: #50785 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent 2acbcbd commit 1c28db8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,14 @@ async function testImportRaw({ name, publicUsages }) {
340340

341341
(async function() {
342342
const tests = [];
343-
testVectors.forEach((vector) => {
344-
[true, false].forEach((extractable) => {
343+
for (const vector of testVectors) {
344+
for (const extractable of [true, false]) {
345345
tests.push(testImportSpki(vector, extractable));
346346
tests.push(testImportPkcs8(vector, extractable));
347347
tests.push(testImportJwk(vector, extractable));
348-
});
348+
}
349349
tests.push(testImportRaw(vector));
350-
});
351-
350+
}
352351
await Promise.all(tests);
353352
})().then(common.mustCall());
354353

0 commit comments

Comments
 (0)