I am testing a controller that uses a service that returns a promise. I need to resolve promise. I am using Jasmine 2. Here is Spec code beforeEach(
If you want the spyOn to actually use the correct implementation instead of the mock you can use callThrough() instead of callFake().
callThrough()
callFake()
Try it like this:
spyOn(myService, "getDateRangeData").and.callThrough();