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

Commit 2730007

Browse files
chore(protractor): annotate $animate to allow tests to run under strict-di
1 parent 7ffc247 commit 2730007

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

protractor-jenkins-conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ exports.config = {
2121

2222
// Disable animations so e2e tests run more quickly
2323
var disableNgAnimate = function() {
24-
angular.module('disableNgAnimate', []).run(function($animate) {
24+
angular.module('disableNgAnimate', []).run(['$animate', function($animate) {
2525
$animate.enabled(false);
26-
});
26+
}]);
2727
};
2828

2929
browser.addMockModule('disableNgAnimate', disableNgAnimate);

protractor-shared-conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ exports.config = {
1212

1313
// Disable animations so e2e tests run more quickly
1414
var disableNgAnimate = function() {
15-
angular.module('disableNgAnimate', []).run(function($animate) {
15+
angular.module('disableNgAnimate', []).run(['$animate', function($animate) {
1616
$animate.enabled(false);
17-
});
17+
}]);
1818
};
1919

2020
browser.addMockModule('disableNgAnimate', disableNgAnimate);

0 commit comments

Comments
 (0)