-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with custom instances #24
Comments
I can confirm that the update from nicangeli fixes the problem. |
Include baseUrl when comparing URLs Fixes axios#24
Kamino cloned this issue to anilanar/moxios |
short answer, you should use
thanks a lot for pr |
@or4 I tried your code snippet, but it doesn't seem to work for me. When I log the axios vs the moxios instance code (with the baseUrl added), they look exactly the same so I am not sure what the issue could be. Your code makes perfect sense that it would get this working, so i'm stumped as to why it isn't. This is the axios code I pass to my mocked store This is the moxios code |
I have following file with a custom axios instance:
I consume this file in processing and in a test, but it doesn't work.
When I use the default instance, everything works as expected:
Inside a VueJs model is do:
And in the test I use moxios as follows:
As I said, when I switch both in the test and the processing to the default axios instance, the fails succeeds and get the amount of records.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: