| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7f301e0 commit 9cedaa6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -363,16 +363,16 @@ async function testImportRaw({ name, publicUsages }, namedCurve) { | |||
| 363 | 363 | ||
| 364 | 364 | (async function() { | |
| 365 | 365 | const tests = []; | |
| 366 | - testVectors.forEach((vector) => { | ||
| 367 | - curves.forEach((namedCurve) => { | ||
| 368 | - [true, false].forEach((extractable) => { | ||
| 366 | + for (const vector of testVectors) { | ||
| 367 | + for (const namedCurve of curves) { | ||
| 368 | + for (const extractable of [true, false]) { | ||
| 369 | 369 | tests.push(testImportSpki(vector, namedCurve, extractable)); | |
| 370 | 370 | tests.push(testImportPkcs8(vector, namedCurve, extractable)); | |
| 371 | 371 | tests.push(testImportJwk(vector, namedCurve, extractable)); | |
| 372 | - }); | ||
| 372 | + } | ||
| 373 | 373 | tests.push(testImportRaw(vector, namedCurve)); | |
| 374 | - }); | ||
| 375 | - }); | ||
| 374 | + } | ||
| 375 | + } | ||
| 376 | 376 | ||
| 377 | 377 | await Promise.all(tests); | |
| 378 | 378 | })().then(common.mustCall()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments