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

Function trackEvents

packages/common/http/test/xhr_spec.ts:29–36  ·  view source on GitHub ↗
(obs: Observable<HttpEvent<any>>)

Source from the content-addressed store, hash-verified

27import {MockXhrFactory} from './xhr_mock';
28
29function trackEvents(obs: Observable<HttpEvent<any>>): HttpEvent<any>[] {
30 const events: HttpEvent<any>[] = [];
31 obs.subscribe({
32 next: (event) => events.push(event),
33 error: (err) => events.push(err),
34 });
35 return events;
36}
37
38const TEST_POST = new HttpRequest('POST', '/test', 'some body', {
39 responseType: 'text',

Callers 1

xhr_spec.tsFile · 0.70

Calls 2

subscribeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…