$timeout
ngMock
This service is just a simple decorator for $timeout service that adds a "flush" method.
$timeout();
Flushes the queue of pending tasks.