MCPcopy Create free account
hub / github.com/angular/angular / requestFoo

Function requestFoo

packages/service-worker/worker/test/happy_spec.ts:2463–2464  ·  view source on GitHub ↗
(cache: RequestCache | 'only-if-cached', mode: RequestMode)

Source from the content-addressed store, hash-verified

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');

Callers 1

happy_spec.tsFile · 0.85

Calls 1

makeRequestFunction · 0.70

Tested by

no test coverage detected