From a928783f4b4b765fc67322ddfff96b6690f30aca Mon Sep 17 00:00:00 2001 From: christopherthielen Date: Sat, 5 Mar 2016 11:05:12 -0600 Subject: [PATCH] test(uiView): fix animation test in ng 1.2.x --- test/viewDirectiveSpec.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/viewDirectiveSpec.js b/test/viewDirectiveSpec.js index 3a85c162c..c629db74e 100644 --- a/test/viewDirectiveSpec.js +++ b/test/viewDirectiveSpec.js @@ -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;'); }));