Testing with Angular promises using Jasmine
When dealing with promises while writing tests there are several approaches you can take.
We will start with some specs that just have to consume a promise. You
usually don’t care what the dependency that creates the promise…