From c24452c8a0484cf519e8ab0ae29f69e91e174e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 30 Jul 2019 21:13:44 +0200 Subject: [PATCH] Fix console.errors during `yarn run test` @mattwr18 you added `currentUser` in 19b2b7a49 without running the tests, didn't you? --- .../components/ContributionForm/ContributionForm.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/components/ContributionForm/ContributionForm.spec.js b/webapp/components/ContributionForm/ContributionForm.spec.js index 3d136ff4b..e303216f1 100644 --- a/webapp/components/ContributionForm/ContributionForm.spec.js +++ b/webapp/components/ContributionForm/ContributionForm.spec.js @@ -14,6 +14,8 @@ localVue.use(Styleguide) localVue.use(Filters) config.stubs['no-ssr'] = '' +config.stubs['nuxt-link'] = '' +config.stubs['v-popover'] = '' 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,