Skip to main content

All Questions

2 votes
1 answer
2k views

How to spyOn a service function within the link of a directive?

I have a directive that uses a service function like so: angular.module('testModule', ['serviceBeingUsed']) .directive('testDirective', function(serviceBeingUsed) { return { restrict: 'AE'...
user1005240's user avatar