Fix console.errors during yarn run test

@mattwr18 you added `currentUser` in 19b2b7a49 without running the tests,
didn't you?
This commit is contained in:
Robert Schäfer 2019-07-30 21:13:44 +02:00
parent c20eead22e
commit c24452c8a0

View File

@ -14,6 +14,8 @@ localVue.use(Styleguide)
localVue.use(Filters)
config.stubs['no-ssr'] = '<span><slot /></span>'
config.stubs['nuxt-link'] = '<span><slot /></span>'
config.stubs['v-popover'] = '<span><slot /></span>'
describe('ContributionForm.vue', () => {
let wrapper
@ -71,6 +73,13 @@ describe('ContributionForm.vue', () => {
'editor/placeholder': () => {
return 'some cool placeholder'
},
'auth/user': () => {
return {
id: '4711',
name: 'You yourself',
slug: 'you-yourself',
}
},
}
const store = new Vuex.Store({
getters,