jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

How do I set response.statusText? #21

Closed fmoraw closed 7 years ago

fmoraw commented 7 years ago

It is not possible to set statusText like status e.g. return res.status(201) --> works return res.statusText("Unauthorized") --> not implemented?

Would you like to see it implemented?

jameslnewell commented 7 years ago

Good point, I'll definitely accept a PR for it!

fmoraw commented 7 years ago

Done.