test: replace forEach to for.. test-webcrypto-export-import-cfrg.js

PR-URL: https://github.com/nodejs/node/pull/50785
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Angelo Parziale authored and GitHub committed 2023-12-01 18:27:21 +00:00
1 parent 2f4065250e
commit 60ffa9f1b3
1 file changed
+4 -5
@@ -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());