fix(common): expose reportProgress option on HttpClient API (#18083)
This commit is contained in:

committed by
Igor Minar

parent
ddb766e456
commit
9f28e838d3
File diff suppressed because it is too large
Load Diff
@ -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) => {
|
||||
|
Reference in New Issue
Block a user