Skip to content

Commit

Permalink
fix(karma): updated tests for 1.5, removed unnecessary 'clean-up' tes…
Browse files Browse the repository at this point in the history
…ts since angular-mocks now calls scope.destroy by default
  • Loading branch information
Dan Bucholtz committed Apr 6, 2016
1 parent 821c176 commit e5d9d14
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/unit/angular/controller/refreshController.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,4 @@ describe('$ionicRefresh Controller', function() {
ctrl.getRefresherDomMethods().hide();
expect(refresher.classList.contains('invisible')).toBe(true);
});

it('should cleanup when done', function() {
setup();

expect(ctrl.__getScrollChild()).not.toBe(null);
expect(ctrl.__getScrollParent()).not.toBe(null);

scope.$broadcast('$destroy');

expect(ctrl.__getScrollChild()).toBe(null);
expect(ctrl.__getScrollParent()).toBe(null);
});
});

0 comments on commit e5d9d14

Please sign in to comment.