Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 881fdda

Browse files
Hadrien Tulipepetebacondarwin
Hadrien Tulipe
authored andcommitted
docs(ngAnimateMock): document how to require mocked service in tests
Closes #14668 Closes #14670
1 parent fda338e commit 881fdda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngMock/angular-mocks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,8 @@ angular.mock.TzDate.prototype = Date.prototype;
760760
* @description
761761
* Mock implementation of the {@link ng.$animate `$animate`} service. Exposes two additional methods
762762
* for testing animations.
763+
*
764+
* You need to require the `ngAnimateMock` module in your test suite for instance `beforeEach(module('ngAnimateMock'))`
763765
*/
764766
angular.mock.animate = angular.module('ngAnimateMock', ['ng'])
765767

0 commit comments

Comments
 (0)