mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user