ngMock.$interval

Improve this Doc View Source $interval

  1. 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.