jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

xhr.responseUrl is not passed for proxied requests #73

Open mad-gooze opened 5 years ago

mad-gooze commented 5 years ago

Looks like this can be fixed by adding setter and getter in MockResponse and calling setter in proxy

I can make a PR if it's acceptable.

jameslnewell commented 5 years ago

True! I don't think we support it at all do we?

Yeah I'll merge a MockResponse.url property that sets xhr.responseUrl

bpinto commented 3 years ago

@mad-gooze did you end up working on this code?

mad-gooze commented 3 years ago

nope