The angular.mock
object is a namespace for all built-in mock services that ship with angular.
It automatically replaces real services if the angular-mocks.js
file is loaded after
angular.js
and before any tests.
Built-in mocks:
$browser
- A mock implementation of the browser.$exceptionHandler
- A mock implementation of the
angular service exception handler.$log
- A mock implementation of the angular service log.