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

Passes request config and response through interceptors stack #31

Closed matthewjh closed 9 years ago

matthewjh commented 9 years ago

This PR passes the request config and response through the $httpProvider.interceptorsStack, so that angular apps using interceptors will behave as expected when using protractor-http-mock.

I'm only using the response and request methods on each interceptor here; there are more in the interceptor api but these two are the main ones and others can be implemented at a later stage.

atecarlos commented 9 years ago

Fantastic! I'll take a look as soon as I can and integrate it into the main branch.

atecarlos commented 9 years ago

Sorry for the delay. I have reserved some time this weekend to look at this merge it in. Thanks!