(impl, fn)
| 12 | } |
| 13 | |
| 14 | function withFakeFetch(impl, fn) { |
| 15 | const original = global.fetch; |
| 16 | global.fetch = impl; |
| 17 | return Promise.resolve() |
| 18 | .then(fn) |
| 19 | .finally(() => { global.fetch = original; }); |
| 20 | } |
| 21 | |
| 22 | function mkRes(body) { |
| 23 | return { |
no outgoing calls
no test coverage detected