mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05: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
2acbcbd8ad
commit
1c28db8116
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