I'm dealing with a 3rd party library that uses Axios and only defines baseURL without url for some reason. This results in an error because the request handler tries to call substr on undefined.
I simply added a fallback to an empty string for the url and added a test for it.
I'm dealing with a 3rd party library that uses Axios and only defines
baseURL
withouturl
for some reason. This results in an error because the request handler tries to callsubstr
onundefined
.I simply added a fallback to an empty string for the
url
and added a test for it.