MCPcopy
hub / github.com/angular/angular / when

Method when

packages/core/test/linker/resource_loader_mock.ts:48–50  ·  view source on GitHub ↗

* Add a definition for the given URL to return the given response. Unlike expectations, * definitions have no order and will satisfy any matching request at any time. Also * unlike expectations, unused definitions do not cause `verifyNoOutstandingExpectations` * to return an error.

(url: string, response: string)

Source from the content-addressed store, hash-verified

46 * to return an error.
47 */
48 when(url: string, response: string) {
49 this._definitions.set(url, response);
50 }
51
52 /**
53 * Process pending requests and verify there are no outstanding expectations. Also fails

Callers 10

requiredFunction · 0.80
minFunction · 0.80
maxDateFunction · 0.80
minLengthFunction · 0.80
minDateFunction · 0.80
maxFunction · 0.80
emailFunction · 0.80
maxLengthFunction · 0.80
validateAsyncFunction · 0.80
patternFunction · 0.80

Calls 1

setMethod · 0.65

Tested by

no test coverage detected