aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngRoute/directive/ngViewSpec.js
diff options
context:
space:
mode:
authorMatias Niemelä2014-01-22 19:28:42 -0500
committerMatias Niemelä2014-02-06 01:22:14 -0500
commit4224cd5182bc93e4a210f75e0a4e4de7f3c544e8 (patch)
treef5fac86882816fc273975118b6f262f089436d3b /test/ngRoute/directive/ngViewSpec.js
parent906fdad0f95465842e336e057ea97d0633712189 (diff)
downloadangular.js-4224cd5182bc93e4a210f75e0a4e4de7f3c544e8.tar.bz2
fix(mocks): rename mock.animate to ngAnimateMock and ensure it contains all test helper code for ngAnimate
Closes #5822 Closes #5917
Diffstat (limited to 'test/ngRoute/directive/ngViewSpec.js')
-rw-r--r--test/ngRoute/directive/ngViewSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ngRoute/directive/ngViewSpec.js b/test/ngRoute/directive/ngViewSpec.js
index 113055cb..9bcd50b3 100644
--- a/test/ngRoute/directive/ngViewSpec.js
+++ b/test/ngRoute/directive/ngViewSpec.js
@@ -684,7 +684,7 @@ describe('ngView animations', function() {
describe('hooks', function() {
beforeEach(module('ngAnimate'));
- beforeEach(module('mock.animate'));
+ beforeEach(module('ngAnimateMock'));
it('should fire off the enter animation',
inject(function($compile, $rootScope, $location, $timeout, $animate) {
@@ -702,7 +702,7 @@ describe('ngView animations', function() {
var item;
$templateCache.put('/foo.html', [200, '<div>foo</div>', {}]);
- element = $compile(html('<ng-view></div>'))($rootScope);
+ element = $compile(html('<div ng-view></div>'))($rootScope);
$location.path('/foo');
$rootScope.$digest();
@@ -863,7 +863,7 @@ describe('ngView animations', function() {
};
}
- beforeEach(module(spyOnAnchorScroll(), 'mock.animate'));
+ beforeEach(module(spyOnAnchorScroll(), 'ngAnimateMock'));
beforeEach(inject(spyOnAnimateEnter()));
it('should call $anchorScroll if autoscroll attribute is present', inject(