MCPcopy
hub / github.com/angular/angular / flush

Method flush

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

* Process pending requests and verify there are no outstanding expectations. Also fails * if no requests are pending.

()

Source from the content-addressed store, hash-verified

54 * if no requests are pending.
55 */
56 flush() {
57 if (this._requests.length === 0) {
58 throw new Error('No pending requests to flush');
59 }
60
61 do {
62 this._processRequest(this._requests.shift()!);
63 } while (this._requests.length > 0);
64
65 this.verifyNoOutstandingExpectations();
66 }
67
68 /**
69 * Throw an exception if any expectations have not been satisfied.

Calls 2

_processRequestMethod · 0.95

Tested by

no test coverage detected