service in module ngMock
Mock implementation of the $interval service. Use $interval.flush(millis) to move forward by millis milliseconds and trigger any functions scheduled to run in that time.
Usage $interval(fn, delay, [count], [invokeApply], [Pass]); Arguments Param Type Details fn function() A function that should be called repeatedly. delay number Number of milliseconds between each function call. count (optional) number Number of times to repeat. If not set, or 0,