ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.47k stars 245 forks source link

responseUrl should be responseURL #278

Closed createthis closed 4 years ago

createthis commented 4 years ago

I'm seeing a difference between axios-mock-adapter and using axios on Chrome using the following pseudocode:

try {
  const response = await axios.put(some_url);
} catch (e) {

Using axios_mock_adapter the path is:

e.response.request.responseUrl

However on Chrome it is:

e.response.request.responseURL

This is pretty annoying because I have to test both on the client when simulating 302 redirects.

ctimmerm commented 4 years ago

Will be fixed by #287