Testing Angular $q Promises

This is a quick reference to testing Angular’s $q promises.

Values of promise.$$state.status
Value State
0 Outstanding
1 Resolved
2 Rejected