( scope: SwTestHarness, url: string, clientId?: string, )
| 407 | } |
| 408 | |
| 409 | function makeNoCorsRequest( |
| 410 | scope: SwTestHarness, |
| 411 | url: string, |
| 412 | clientId?: string, |
| 413 | ): Promise<string | null> { |
| 414 | const req = new MockRequest(url, {mode: 'no-cors'}); |
| 415 | const [resTextPromise, done] = makePendingRequest(scope, req, clientId); |
| 416 | return done.then(() => resTextPromise); |
| 417 | } |
| 418 | |
| 419 | function makePendingRequest( |
| 420 | scope: SwTestHarness, |
no test coverage detected
searching dependent graphs…