( scope: SwTestHarness, url: string, clientId = 'default', init?: Object, )
| 2875 | } |
| 2876 | |
| 2877 | async function makeRequest( |
| 2878 | scope: SwTestHarness, |
| 2879 | url: string, |
| 2880 | clientId = 'default', |
| 2881 | init?: Object, |
| 2882 | ): Promise<string | null> { |
| 2883 | const [resPromise, done] = scope.handleFetch(new MockRequest(url, init), clientId); |
| 2884 | await done; |
| 2885 | const res = await resPromise; |
| 2886 | if (res !== undefined && res.ok) { |
| 2887 | return res.text(); |
| 2888 | } |
| 2889 | return null; |
| 2890 | } |
| 2891 | |
| 2892 | async function makeWorkerRequest( |
| 2893 | scope: SwTestHarness, |
no test coverage detected
searching dependent graphs…