| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -340,15 +340,14 @@ async function testImportRaw({ name, publicUsages }) { | |||
| 340 | 340 | ||
| 341 | 341 | (async function() { | |
| 342 | 342 | const tests = []; | |
| 343 | - testVectors.forEach((vector) => { | ||
| 344 | - [true, false].forEach((extractable) => { | ||
| 343 | + for (const vector of testVectors) { | ||
| 344 | + for (const extractable of [true, false]) { | ||
| 345 | 345 | tests.push(testImportSpki(vector, extractable)); | |
| 346 | 346 | tests.push(testImportPkcs8(vector, extractable)); | |
| 347 | 347 | tests.push(testImportJwk(vector, extractable)); | |
| 348 | - }); | ||
| 348 | + } | ||
| 349 | 349 | tests.push(testImportRaw(vector)); | |
| 350 | - }); | ||
| 351 | - | ||
| 350 | + } | ||
| 352 | 351 | await Promise.all(tests); | |
| 353 | 352 | })().then(common.mustCall()); | |
| 354 | 353 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments