promises

A collection of 2 post

Mocking AngularJS promise callback params in Jasmine tests

How to mock promises in AngularJS Jasmine unit tests?

Resolving AngularJS $http promises in services vs. controllers

Should you be resolving AngularJS $http promises in services or controllers? Which one is better?