Figured out how to manipulate promise resolutions for testing

The service returns the result of a http request which is a promise.  The promise resolves to success or error depending on the response of the request.

The next step is to figure out the best way of testing code that needs to run on success and error