Skip to content
Snippets Groups Projects
Verified Commit 0ecfd106 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed failing unit test because of leaking state

parent 0b667371
No related branches found
No related tags found
No related merge requests found
import {expect} from 'chai' import {expect} from 'chai'
var sinon = require('sinon') var sinon = require('sinon')
import axios from 'axios'
import moxios from 'moxios' import moxios from 'moxios'
import store from '@/store/instance' import store from '@/store/instance'
import { testAction } from '../../utils' import { testAction } from '../../utils'
...@@ -14,6 +15,7 @@ describe('store/instance', () => { ...@@ -14,6 +15,7 @@ describe('store/instance', () => {
afterEach(function () { afterEach(function () {
sandbox.restore() sandbox.restore()
moxios.uninstall() moxios.uninstall()
axios.defaults.baseURL = null
}) })
describe('mutations', () => { describe('mutations', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment