aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngSwitchSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2013-04-11 22:39:15 -0700
committerMisko Hevery2013-04-11 23:06:07 -0700
commit570463a465fae02efc33e5a1fa963437cdc275dd (patch)
treefde71c8e537b0c8985ba5d0f920f8fc67ef2585a /test/ng/directive/ngSwitchSpec.js
parent3c3247fe174ce408459bd018c9d83e84490789f5 (diff)
downloadangular.js-570463a465fae02efc33e5a1fa963437cdc275dd.tar.bz2
fix(ngAnimate): prevent animation on initial page load
Diffstat (limited to 'test/ng/directive/ngSwitchSpec.js')
-rw-r--r--test/ng/directive/ngSwitchSpec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ng/directive/ngSwitchSpec.js b/test/ng/directive/ngSwitchSpec.js
index 5f0a2bb3..ee51e194 100644
--- a/test/ng/directive/ngSwitchSpec.js
+++ b/test/ng/directive/ngSwitchSpec.js
@@ -236,8 +236,9 @@ describe('ngSwitch ngAnimate', function() {
beforeEach(module(function($animationProvider, $provide) {
$provide.value('$window', window = angular.mock.createMockWindow());
- return function($sniffer) {
+ return function($sniffer, $animator) {
vendorPrefix = '-' + $sniffer.vendorPrefix + '-';
+ $animator.enabled(true);
};
}));