MCPcopy Create free account
hub / github.com/angular/angular / mockProgressEvent

Method mockProgressEvent

packages/common/http/test/fetch_spec.ts:832–834  ·  view source on GitHub ↗
(loaded: number)

Source from the content-addressed store, hash-verified

830 }
831
832 mockProgressEvent(loaded: number): void {
833 this.response.progress.push(loaded);
834 }
835
836 mockErrorEvent(error: any) {
837 this.reject(error);

Callers 1

fetch_spec.tsFile · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected