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, }) } diff --git a/frontend/src/pages/Community.spec.js b/frontend/src/pages/Community.spec.js index efb96cc67..5b8fc2323 100644 --- a/frontend/src/pages/Community.spec.js +++ b/frontend/src/pages/Community.spec.js @@ -8,17 +8,20 @@ const apolloQueryMock = jest.fn() const apolloMutationMock = jest.fn() apolloQueryMock.mockResolvedValue({ data: { - listContributions: [ - { - id: 1555, - amount: '200', - memo: 'Fleisig, fleisig am Arbeiten mein Lieber Freund, 50 Zeichen sind viel', - createdAt: '2022-07-15T08:47:06.000Z', - deletedAt: null, - confirmedBy: null, - confirmedAt: null, - }, - ], + listContributions: { + contributionList: [ + { + id: 1555, + amount: '200', + memo: 'Fleisig, fleisig am Arbeiten mein Lieber Freund, 50 Zeichen sind viel', + createdAt: '2022-07-15T08:47:06.000Z', + deletedAt: null, + confirmedBy: null, + confirmedAt: null, + }, + ], + contributionCount: 1, + }, }, })