| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -275,7 +275,7 @@ async function testWrap(wrappingKey, unwrappingKey, key, wrap, format) { | |||
| 275 | 275 | assert.deepStrictEqual(exported, exportedAgain); | |
| 276 | 276 | } | |
| 277 | 277 | ||
| 278 | - async function testWrapping(name, keys) { | ||
| 278 | + function testWrapping(name, keys) { | ||
| 279 | 279 | const variations = []; | |
| 280 | 280 | ||
| 281 | 281 | const { | |
@@ -290,15 +290,15 @@ async function testWrapping(name, keys) { | |||
| 290 | 290 | }); | |
| 291 | 291 | }); | |
| 292 | 292 | ||
| 293 | - return Promise.all(variations); | ||
| 293 | + return variations; | ||
| 294 | 294 | } | |
| 295 | 295 | ||
| 296 | 296 | (async function() { | |
| 297 | 297 | await generateWrappingKeys(); | |
| 298 | 298 | const keys = await generateKeysToWrap(); | |
| 299 | 299 | const variations = []; | |
| 300 | 300 | Object.keys(kWrappingData).forEach((name) => { | |
| 301 | - return testWrapping(name, keys); | ||
| 301 | + variations.push(...testWrapping(name, keys)); | ||
| 302 | 302 | }); | |
| 303 | 303 | await Promise.all(variations); | |
| 304 | 304 | })().then(common.mustCall()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments