MCPcopy Index your code
hub / github.com/angular/angular / makePendingRequest

Function makePendingRequest

packages/service-worker/worker/test/data_spec.ts:419–427  ·  view source on GitHub ↗
(
  scope: SwTestHarness,
  urlOrReq: string | MockRequest,
  clientId?: string,
)

Source from the content-addressed store, hash-verified

417}
418
419function 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}

Callers 3

data_spec.tsFile · 0.85
makeRequestFunction · 0.85
makeNoCorsRequestFunction · 0.85

Calls 3

thenMethod · 0.65
textMethod · 0.65
handleFetchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…