Skip to content

Commit 37cc961

Browse files
test(view): fix tests in angular 1.3.x
1 parent 2f91c14 commit 37cc961

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/viewDirectiveSpec.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ declare let inject, jasmine;
77
let module = angular.mock.module;
88

99
function animateFlush($animate) {
10-
$animate && $animate.triggerCallbacks && $animate.triggerCallbacks(); // 1.2-1.3
11-
$animate && $animate.flush && $animate.flush(); // 1.4
10+
if ($animate && $animate.flush) {
11+
$animate.flush(); // 1.4
12+
} else if ($animate && $animate.triggerCallbacks) {
13+
$animate.triggerCallbacks(); // 1.2-1.3
14+
}
1215
}
1316

1417
describe('uiView', function () {

0 commit comments

Comments
 (0)