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

Function callFetchAndFlush

packages/common/http/test/fetch_spec.ts:60–63  ·  view source on GitHub ↗
(req: HttpRequest<any>)

Source from the content-addressed store, hash-verified

58 let fetchSpy: jasmine.Spy<typeof fetch>;
59
60 function callFetchAndFlush(req: HttpRequest<any>): void {
61 backend.handle(req).pipe(take(1)).subscribe();
62 fetchMock.mockFlush(HttpStatusCode.Ok, 'OK', 'some response');
63 }
64
65 beforeEach(() => {
66 TestBed.configureTestingModule({

Callers 1

fetch_spec.tsFile · 0.85

Calls 3

subscribeMethod · 0.65
handleMethod · 0.65
mockFlushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…