$timeout
ngMock
This service is just a simple decorator for $timeout
service
that adds a "flush" and "verifyNoPendingTasks" methods.
$timeout();
Flushes the queue of pending tasks.
Param | Type | Details |
---|---|---|
delay (optional) | number | maximum timeout amount to flush up until |
Param | Type | Details |
---|---|---|
expectedDelay (optional) | number |
Verifies that there are no pending tasks that need to be flushed.