(cache: RequestCache | 'only-if-cached', mode: RequestMode)
| 2461 | |
| 2462 | it('ignores invalid `only-if-cached` requests ', async () => { |
| 2463 | const requestFoo = (cache: RequestCache | 'only-if-cached', mode: RequestMode) => |
| 2464 | makeRequest(scope, '/foo.txt', undefined, {cache, mode}); |
| 2465 | |
| 2466 | expect(await requestFoo('default', 'no-cors')).toBe('this is foo'); |
| 2467 | expect(await requestFoo('only-if-cached', 'same-origin')).toBe('this is foo'); |
no test coverage detected