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

Method mockError

packages/common/http/test/jsonp_mock.ts:74–80  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

72 }
73
74 mockError(err: Error) {
75 // Mimic behavior described by
76 // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block
77 if (this.mock!.ownerDocument === this) {
78 this.mock!.listeners.error!(err);
79 }
80 }
81}

Callers 1

jsonp_spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected