$timeout
service in module ngMock
Description
This service is just a simple decorator for $timeout
service that adds a "flush" and "verifyNoPendingTasks" methods.
Usage
- $timeout();
Methods
Flushes the queue of pending tasks.
Parameters
ParamTypeDetailsdelay (optional) number
maximum timeout amount to flush up until
Verifies that there are no pending tasks that need to be flushed.