ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.44k stars 244 forks source link

responseUrl should be responseURL #278

Closed createthis closed 3 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 3 years ago

Will be fixed by #287