Service components in ngMock
Name | Description |
---|---|
$flushPendingTasks |
Flushes all currently pending tasks and executes the corresponding callbacks. |
$verifyNoPendingTasks |
Verifies that there are no pending tasks that need to be flushed. It throws an error if there are still pending tasks. |
$exceptionHandler |
Mock implementation of |
$log |
Mock implementation of |
$interval |
Mock implementation of the $interval service. |
$animate |
Mock implementation of the |
$httpBackend |
Fake HTTP backend implementation suitable for unit testing applications that use the $http service. |
$timeout |
This service is just a simple decorator for $timeout service that adds a "flush" and "verifyNoPendingTasks" methods. |
$controller |
A decorator for |
$componentController |
A service that can be used to create instances of component controllers. Useful for unit-testing. |
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.7.8/docs/api/ngMock/service