mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
ca42bb1d2a
In nodejs testing environment it's possible to use https://github.com/tmpvar/jsdom library to define a window object, but you still want to use node http adapter. Due to those diverse testing environmnents, I propose to test for XMLHttpRequest directly, because window global object is not a sure sign of a browser environment anymore.