I was coding test cases for an angular application using jasmine. But many internal methods are declared as private in the services.
Example:
App.service
Achan is 100% right, but if you really need to call private method in your tests (what should be never :-) ) you can do it by:
var myPrivateSpy = spyOn(productDisplayService, "myPrivate").and.callThrough(); myPrivateSpy.call();