Skip to content

Commit a928783

Browse files
test(uiView): fix animation test in ng 1.2.x
1 parent 409f2e1 commit a928783

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/viewDirectiveSpec.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -686,15 +686,14 @@ describe('uiView', function () {
686686
expect($state.current.name).toBe('n');
687687
expect(log).toBe('start:n;success:n;');
688688

689-
animateFlush($animate);
689+
animateFlush($animate); $q.flush();
690690
expect(log).toBe('start:n;success:n;animEnter;');
691691

692-
$state.transitionTo('a');
693-
$q.flush();
692+
$state.transitionTo('a'); $q.flush();
694693
expect($state.current.name).toBe('a');
695694
expect(log).toBe('start:n;success:n;animEnter;start:a;success:a;destroy;');
696695

697-
animateFlush($animate);
696+
animateFlush($animate); $q.flush();
698697
expect(log).toBe('start:n;success:n;animEnter;start:a;success:a;destroy;animLeave;');
699698
}));
700699

0 commit comments

Comments
 (0)