Fixed failing unit test because of leaking state

This commit is contained in:
Eliot Berriot 2019-01-21 11:04:47 +01:00
parent 0b66737181
commit 0ecfd106f4
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 2 additions and 0 deletions

View File

@ -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', () => {