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

Function _getFakeAsyncZoneSpec

packages/zone.js/lib/zone-spec/fake-async-test.ts:1012–1020  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1010}
1011
1012function _getFakeAsyncZoneSpec(): any {
1013 if (_fakeAsyncTestZoneSpec == null) {
1014 _fakeAsyncTestZoneSpec = Zone.current.get('FakeAsyncTestZoneSpec');
1015 if (_fakeAsyncTestZoneSpec == null) {
1016 throw new Error('The code should be running in the fakeAsync zone to call this function');
1017 }
1018 }
1019 return _fakeAsyncTestZoneSpec;
1020}
1021
1022/**
1023 * Simulates the asynchronous passage of time for the timers in the fakeAsync zone.

Callers 4

tickFunction · 0.85
flushFunction · 0.85
discardPeriodicTasksFunction · 0.85
flushMicrotasksFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…