I am working on a large web application and would like to write unit tests 
to cover most of js code. I have a service that uses Restangular to 
interact with server, functions inside this service are categorized for 
different modules, and same function may be frequently used by different 
modules. Most of controllers has similiar dependencies(depend on same 
service, but call different functions). How can I write reusable mocks, so 
that when I unit test different controllers, I don't have to mock the same 
service again and again? 

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to