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

Function nestedTimer

packages/core/test/fake_async_spec.ts:208–210  ·  view source on GitHub ↗
(callback: () => any)

Source from the content-addressed store, hash-verified

206 withProxyZone(
207 fakeAsync(() => {
208 function nestedTimer(callback: () => any): void {
209 setTimeout(() => setTimeout(() => callback()));
210 }
211 const callback = jasmine.createSpy('callback');
212 nestedTimer(callback);
213 expect(callback).not.toHaveBeenCalled();

Callers 1

fake_async_spec.tsFile · 0.70

Calls 2

setTimeoutFunction · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected