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

Commit 7875652

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

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
@@ -761,6 +761,8 @@ angular.mock.TzDate.prototype = Date.prototype;
761761
* @description
762762
* Mock implementation of the {@link ng.$animate `$animate`} service. Exposes two additional methods
763763
* for testing animations.
764+
*
765+
* You need to require the `ngAnimateMock` module in your test suite for instance `beforeEach(module('ngAnimateMock'))`
764766
*/
765767
angular.mock.animate = angular.module('ngAnimateMock', ['ng'])
766768

0 commit comments

Comments
 (0)