From 1165b346eb1cd1ade13ab55fc2cd38dd1d13b63c Mon Sep 17 00:00:00 2001 From: einhorn_b Date: Mon, 6 Nov 2023 15:28:21 +0100 Subject: [PATCH] update message count in test, with updated code updating contribution from admin also create a history contributionMessage --- .../src/graphql/resolver/ContributionResolver.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/graphql/resolver/ContributionResolver.test.ts b/backend/src/graphql/resolver/ContributionResolver.test.ts index c2f3fc3ae..8b2bf141e 100644 --- a/backend/src/graphql/resolver/ContributionResolver.test.ts +++ b/backend/src/graphql/resolver/ContributionResolver.test.ts @@ -2802,8 +2802,7 @@ describe('ContributionResolver', () => { } = await query({ query: adminListContributions, }) - // console.log('18 contributions: %s', JSON.stringify(contributionListObject, null, 2)) - // console.log(contributionListObject) + expect(contributionListObject.contributionList).toHaveLength(18) expect(contributionListObject).toMatchObject({ contributionCount: 18, @@ -2886,7 +2885,7 @@ describe('ContributionResolver', () => { id: expect.any(Number), lastName: 'Lustig', memo: 'Das war leider zu Viel!', - messagesCount: 0, + messagesCount: 1, status: 'DELETED', }), expect.objectContaining({ @@ -3071,7 +3070,7 @@ describe('ContributionResolver', () => { id: expect.any(Number), lastName: 'Lustig', memo: 'Das war leider zu Viel!', - messagesCount: 0, + messagesCount: 1, status: 'DELETED', }), ]), @@ -3116,7 +3115,7 @@ describe('ContributionResolver', () => { id: expect.any(Number), lastName: 'Lustig', memo: 'Das war leider zu Viel!', - messagesCount: 0, + messagesCount: 1, status: 'DELETED', }), ]),