mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: replace forEach with for-of in test-webcrypto-export-import-ec
PR-URL: https://github.com/nodejs/node/pull/51249 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
7f301e04be
commit
9cedaa62fa
1 file changed
+6
-6
@@ -363,16 +363,16 @@ async function testImportRaw({ name, publicUsages }, namedCurve) {
|
||||
|
||||
(async function() {
|
||||
const tests = [];
|
||||
testVectors.forEach((vector) => {
|
||||
curves.forEach((namedCurve) => {
|
||||
[true, false].forEach((extractable) => {
|
||||
for (const vector of testVectors) {
|
||||
for (const namedCurve of curves) {
|
||||
for (const extractable of [true, false]) {
|
||||
tests.push(testImportSpki(vector, namedCurve, extractable));
|
||||
tests.push(testImportPkcs8(vector, namedCurve, extractable));
|
||||
tests.push(testImportJwk(vector, namedCurve, extractable));
|
||||
});
|
||||
}
|
||||
tests.push(testImportRaw(vector, namedCurve));
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
await Promise.all(tests);
|
||||
})().then(common.mustCall());
|
||||
|
||||
Reference in new issue
Block a user