()
| 357 | let job = null; |
| 358 | const errors = []; |
| 359 | const next = function () { |
| 360 | if (captureJobs.length === 0) { |
| 361 | if (errors.length === 0) { |
| 362 | resolve(); |
| 363 | } else { |
| 364 | reject(errors); |
| 365 | } |
| 366 | return; |
| 367 | } |
| 368 | job = captureJobs.shift(); |
| 369 | job().catch(function (e) { |
| 370 | logger.log('reset', e); |
| 371 | errors.push(e); |
| 372 | }).then(function () { |
| 373 | next(); |
| 374 | }); |
| 375 | }; |
| 376 | next(); |
| 377 | }).then(async () => { |
| 378 | logger.log('green', 'x Close Browser'); |
no outgoing calls
no test coverage detected