diff --git a/protractor-jenkins-conf.js b/protractor-jenkins-conf.js index f0aaa052..64b67a26 100644 --- a/protractor-jenkins-conf.js +++ b/protractor-jenkins-conf.js @@ -21,9 +21,9 @@ exports.config = { // Disable animations so e2e tests run more quickly var disableNgAnimate = function() { - angular.module('disableNgAnimate', []).run(function($animate) { + angular.module('disableNgAnimate', []).run(['$animate', function($animate) { $animate.enabled(false); - }); + }]); }; browser.addMockModule('disableNgAnimate', disableNgAnimate); diff --git a/protractor-shared-conf.js b/protractor-shared-conf.js index d2ac3ced..7bcb0264 100644 --- a/protractor-shared-conf.js +++ b/protractor-shared-conf.js @@ -12,9 +12,9 @@ exports.config = { // Disable animations so e2e tests run more quickly var disableNgAnimate = function() { - angular.module('disableNgAnimate', []).run(function($animate) { + angular.module('disableNgAnimate', []).run(['$animate', function($animate) { $animate.enabled(false); - }); + }]); }; browser.addMockModule('disableNgAnimate', disableNgAnimate);