Skip to content

Commit

Permalink
fix(actionSheetTest): fix failing actionSheet unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Jul 27, 2015
1 parent 38e7166 commit bab6cad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/unit/angular/service/actionSheet.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bab6cad

Please sign in to comment.