From 038a3c1a7cf6d818f27935a9e0c111f5ff03603a Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 20 Jul 2022 09:05:04 +0200 Subject: [PATCH] prepared for ContributionForm.spec.js --- .../components/Contributions/ContributionForm.spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/components/Contributions/ContributionForm.spec.js b/frontend/src/components/Contributions/ContributionForm.spec.js index 44fa170b1..5b05957bb 100644 --- a/frontend/src/components/Contributions/ContributionForm.spec.js +++ b/frontend/src/components/Contributions/ContributionForm.spec.js @@ -6,6 +6,15 @@ const localVue = global.localVue describe('ContributionForm', () => { let wrapper + const propsData = { + value: { + id: null, + date: '', + memo: '', + amount: '', + }, + } + const mocks = { $t: jest.fn((t) => t), $d: jest.fn((d) => d), @@ -20,6 +29,7 @@ describe('ContributionForm', () => { return mount(ContributionForm, { localVue, mocks, + propsData, }) }