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

Add convenience methods to proxy httpmock and handle success/error #7

Closed ReactiveRaven closed 9 years ago

ReactiveRaven commented 9 years ago

Adds handling for the following methods on $http:

Adds wrapper functions to make the promise returned behave more like the one from $http:

atecarlos commented 9 years ago

Hi @nielssj and @ReactiveRaven sorry for the delay. This code has finally been merged. Its the new version 0.1.5. I'm still working on adding a few more examples but the code is ready to be used.

nielssj commented 9 years ago

Awesome, @atecarlos ! I don't have the time to check it out properly this week, but I just ran all the tests I made based on @ReactiveRaven's implementation and they still pass with your implementation.

atecarlos commented 9 years ago

Awesome @nielssj !!