debian-mirror-gitlab/spec/frontend_integration/test_helpers/setup/setup_axios.js

6 lines
217 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
import adapter from 'axios/lib/adapters/xhr';
import axios from '~/lib/utils/axios_utils';
// We're removing our default axios adapter because this is handled by our mock server now
axios.defaults.adapter = adapter;