Mocking AngularJS promise callback params in Jasmine tests
How to mock promises in AngularJS Jasmine unit tests?
How to mock promises in AngularJS Jasmine unit tests?
Should you be resolving AngularJS $http promises in services or controllers? Which one is better?