fix(common): expose reportProgress option on HttpClient API (#18083)

This commit is contained in:
Alex Rickabaugh
2017-07-13 16:19:52 -07:00
committed by Igor Minar
parent ddb766e456
commit 9f28e838d3
3 changed files with 365 additions and 75 deletions

File diff suppressed because it is too large Load Diff

View File

@ -76,6 +76,12 @@ export function main() {
});
backend.expectOne('/test').flush({'data': 'hello world'});
});
it('with progress events enabled', (done: DoneFn) => {
client.get('/test', {reportProgress: true}).subscribe(() => done());
const req = backend.expectOne('/test');
expect(req.request.reportProgress).toEqual(true);
req.flush({});
});
});
describe('makes a POST request', () => {
it('with text data', (done: DoneFn) => {