(val)
| 18 | console.log("This should be []:", array); |
| 19 | }); |
| 20 | function soon(val) { |
| 21 | return new Promise(resolve => { |
| 22 | setTimeout(() => resolve(val), Math.random() * 500); |
| 23 | }); |
| 24 | } |
| 25 | Promise_all([soon(1), soon(2), soon(3)]).then(array => { |
| 26 | console.log("This should be [1, 2, 3]:", array); |
| 27 | }); |
no outgoing calls
no test coverage detected