From 4224cd5182bc93e4a210f75e0a4e4de7f3c544e8 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Wed, 22 Jan 2014 19:28:42 -0500 Subject: fix(mocks): rename mock.animate to ngAnimateMock and ensure it contains all test helper code for ngAnimate Closes #5822 Closes #5917 --- test/ngRoute/directive/ngViewSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ngRoute/directive/ngViewSpec.js') 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, '
foo
', {}]); - element = $compile(html(''))($rootScope); + element = $compile(html('
'))($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( -- cgit v1.2.3