fix test of App.vue

This commit is contained in:
Moriz Wahl 2021-11-24 18:34:34 +01:00
parent 9e34c3459a
commit 53c396e170

View File

@ -7,11 +7,19 @@ const stubs = {
RouterView: true,
}
const mocks = {
$store: {
state: {
token: null,
},
},
}
describe('App', () => {
let wrapper
const Wrapper = () => {
return shallowMount(App, { localVue, stubs })
return shallowMount(App, { localVue, stubs, mocks })
}
describe('shallowMount', () => {