(obs: Observable<HttpEvent<any>>)
| 27 | import {MockXhrFactory} from './xhr_mock'; |
| 28 | |
| 29 | function 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 | |
| 38 | const TEST_POST = new HttpRequest('POST', '/test', 'some body', { |
| 39 | responseType: 'text', |
no test coverage detected
searching dependent graphs…