diff --git a/test/unit/angular/service/actionSheet.unit.js b/test/unit/angular/service/actionSheet.unit.js index 2c0e33fd078..a2d2f52e72a 100644 --- a/test/unit/angular/service/actionSheet.unit.js +++ b/test/unit/angular/service/actionSheet.unit.js @@ -35,8 +35,11 @@ describe('Ionic ActionSheet Service', function() { $q.flush(); expect($document[0].body.classList.contains('action-sheet-open')).toBe(false); expect(scope.element.hasClass('active')).toBe(false); - expect(scope.$destroy).toHaveBeenCalled(); - expect(scope.element.remove).toHaveBeenCalled(); + //Naughty, but ngAnimate can't be flushed ATM + $timeout(function() { + expect(scope.$destroy).toHaveBeenCalled(); + expect(scope.element.remove).toHaveBeenCalled(); + }); })); it('destructiveButtonClicked should removeSheet if returning true', function() {