( scope: SwTestHarness, urlOrReq: string | MockRequest, clientId?: string, )
| 417 | } |
| 418 | |
| 419 | function makePendingRequest( |
| 420 | scope: SwTestHarness, |
| 421 | urlOrReq: string | MockRequest, |
| 422 | clientId?: string, |
| 423 | ): [Promise<string | null>, Promise<void>] { |
| 424 | const req = typeof urlOrReq === 'string' ? new MockRequest(urlOrReq) : urlOrReq; |
| 425 | const [resPromise, done] = scope.handleFetch(req, clientId || 'default'); |
| 426 | return [resPromise.then<string | null>((res) => (res ? res.text() : null)), done]; |
| 427 | } |
no test coverage detected
searching dependent graphs…