Skip to content

Commit e5d9d14

Browse files
author
Dan Bucholtz
committed
fix(karma): updated tests for 1.5, removed unnecessary 'clean-up' tests since angular-mocks now calls scope.destroy by default
1 parent 821c176 commit e5d9d14

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Diff for: test/unit/angular/controller/refreshController.unit.js

-12
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,4 @@ describe('$ionicRefresh Controller', function() {
137137
ctrl.getRefresherDomMethods().hide();
138138
expect(refresher.classList.contains('invisible')).toBe(true);
139139
});
140-
141-
it('should cleanup when done', function() {
142-
setup();
143-
144-
expect(ctrl.__getScrollChild()).not.toBe(null);
145-
expect(ctrl.__getScrollParent()).not.toBe(null);
146-
147-
scope.$broadcast('$destroy');
148-
149-
expect(ctrl.__getScrollChild()).toBe(null);
150-
expect(ctrl.__getScrollParent()).toBe(null);
151-
});
152140
});

0 commit comments

Comments
 (0)