(makePromise, consume)
| 26 | // of the promise. We use this to test that the API accepts not just a Response |
| 27 | // but also a Promise that resolves to a Response. |
| 28 | function withPromiseAndResolved(makePromise, consume) { |
| 29 | return Promise.all([ |
| 30 | consume(makePromise()), |
| 31 | makePromise().then(consume), |
| 32 | ]); |
| 33 | } |
| 34 | |
| 35 | // The makeResponsePromise function must return a Promise that resolves to a |
| 36 | // Response. The checkResult function receives the Promise returned by |
no test coverage detected
searching dependent graphs…