docs(ngAnimateMock): document how to require mocked service in tests
Closes #14668 Closes #14670
This commit is contained in:
committed by
Peter Bacon Darwin
parent
4d5f5ffc78
commit
7875652298
Vendored
+2
@@ -761,6 +761,8 @@ angular.mock.TzDate.prototype = Date.prototype;
|
||||
* @description
|
||||
* Mock implementation of the {@link ng.$animate `$animate`} service. Exposes two additional methods
|
||||
* for testing animations.
|
||||
*
|
||||
* You need to require the `ngAnimateMock` module in your test suite for instance `beforeEach(module('ngAnimateMock'))`
|
||||
*/
|
||||
angular.mock.animate = angular.module('ngAnimateMock', ['ng'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user