tick
function
Simulates the asynchronous passage of time for the timers in the fakeAsync zone.
API
Description
Usage Notes
function tick( millis?: number, tickOptions?: { processNewMacroTasksSynchronously: boolean; }): void;
tick
voidSimulates the asynchronous passage of time for the timers in the fakeAsync zone.
The microtasks queue is drained at the very start of this function and after any timer callback has been executed.
@parammillis
numberThe number of milliseconds to advance the virtual timer.
@paramtickOptions
{ processNewMacroTasksSynchronously: boolean; }The options to pass to the tick() function.
@returns
voidJump to details

