Fixed failing unit test because of leaking state
This commit is contained in:
parent
0b66737181
commit
0ecfd106f4
|
@ -1,5 +1,6 @@
|
|||
import {expect} from 'chai'
|
||||
var sinon = require('sinon')
|
||||
import axios from 'axios'
|
||||
import moxios from 'moxios'
|
||||
import store from '@/store/instance'
|
||||
import { testAction } from '../../utils'
|
||||
|
@ -14,6 +15,7 @@ describe('store/instance', () => {
|
|||
afterEach(function () {
|
||||
sandbox.restore()
|
||||
moxios.uninstall()
|
||||
axios.defaults.baseURL = null
|
||||
})
|
||||
|
||||
describe('mutations', () => {
|
||||
|
|
Loading…
Reference in New Issue