atecarlos / protractor-http-mock

A library designed to work alongside Protractor for setting up mocks for your HTTP ajax requests.
MIT License
173 stars 70 forks source link

Interceptor gets a promise when mock is applied. #50

Closed amatiasq closed 8 years ago

amatiasq commented 8 years ago

I get this error when trying to mock my app:

Broken interceptor detected: Config object not supplied in response:

After a little research I found it's this line (thanks loading-bar project for including that check) throwing the error and its because response is a promise.

atecarlos commented 8 years ago

Hi @amatiasq . I submitted a more general fix for this among other issues. Please let me know if your issue is fixed. Thanks for the PR!