Skip to content

Commit

Permalink
test(uiView): fix animation test in ng 1.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Mar 5, 2016
1 parent 409f2e1 commit a928783
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/viewDirectiveSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,15 +686,14 @@ describe('uiView', function () {
expect($state.current.name).toBe('n');
expect(log).toBe('start:n;success:n;');

animateFlush($animate);
animateFlush($animate); $q.flush();
expect(log).toBe('start:n;success:n;animEnter;');

$state.transitionTo('a');
$q.flush();
$state.transitionTo('a'); $q.flush();
expect($state.current.name).toBe('a');
expect(log).toBe('start:n;success:n;animEnter;start:a;success:a;destroy;');

animateFlush($animate);
animateFlush($animate); $q.flush();
expect(log).toBe('start:n;success:n;animEnter;start:a;success:a;destroy;animLeave;');
}));

Expand Down

0 comments on commit a928783

Please sign in to comment.