I have a method in a service that uses underscore\'s debounce.
Inside that method is a call to a method on a different service. I\'m trying to test that the different s
My debounced function took arguments so I mocked _.debounce like this
_.debounce
spyOn(_, 'debounce').and.callFake(function(cb) {return cb});
(slight modification on @Wawy's answer)