nchaulet / httpbackend

Http backend mock module for protractor
MIT License
28 stars 10 forks source link

Option to passThrough? #7

Closed rikard1979 closed 9 years ago

rikard1979 commented 9 years ago

I miss the option to passThrough.

Let say I have configured the browser to use the mocked $httpBackend and still want browser.get to fetch the real resource, but then having all rest-calls made by that path mocked.

I assumed I could then say

backend.whenGET(/^\/#\/clientPath.*/).passThrough();
backend.whenGET(/.*\/my-rest-api\/context.*/).respond(200, {});
nchaulet commented 9 years ago

I am looking this :)

nchaulet commented 9 years ago

passThrough is availlable in version 1.1.0 :)