mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(delegateService): create filterFn to find active
This commit is contained in:
@@ -32,7 +32,7 @@ describe('$ionicScroll Controller', function() {
|
||||
spyOn($ionicScrollDelegate, '_registerInstance');
|
||||
var el = setup();
|
||||
expect($ionicScrollDelegate._registerInstance)
|
||||
.toHaveBeenCalledWith(ctrl, undefined);
|
||||
.toHaveBeenCalledWith(ctrl, undefined, jasmine.any(Function));
|
||||
}));
|
||||
|
||||
it('should register with given handle and deregister on destroy', inject(function($ionicScrollDelegate) {
|
||||
@@ -44,7 +44,7 @@ describe('$ionicScroll Controller', function() {
|
||||
delegateHandle: 'something'
|
||||
});
|
||||
expect($ionicScrollDelegate._registerInstance)
|
||||
.toHaveBeenCalledWith(ctrl, 'something');
|
||||
.toHaveBeenCalledWith(ctrl, 'something', jasmine.any(Function));
|
||||
|
||||
expect(deregisterSpy).not.toHaveBeenCalled();
|
||||
scope.$destroy();
|
||||
|
||||
Reference in New Issue
Block a user