testing

AngularJS promises and Jasmine tests

I was working on new component for work, an AngularJS service, that was promised based. Nothing really that special about it. It was using notifications from the deferred API in AngularJS's $q service to send simulated data that would be coming in async via other means. To simulate this, I…