From 00ae91177e8f1e7ae2734408fcd0490f416c8577 Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 21 Sep 2022 13:55:37 +0200 Subject: [PATCH] Change the result of the query in test file. --- .../CreationTransactionList.spec.js | 43 +++++++++---------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/admin/src/components/CreationTransactionList.spec.js b/admin/src/components/CreationTransactionList.spec.js index 3e2d5893e..01a18e325 100644 --- a/admin/src/components/CreationTransactionList.spec.js +++ b/admin/src/components/CreationTransactionList.spec.js @@ -6,30 +6,29 @@ const localVue = global.localVue const apolloQueryMock = jest.fn().mockResolvedValue({ data: { - creationTransactionList: [ - { - id: 1, - amount: 100, - balanceDate: 0, - creationDate: new Date(), - memo: 'Testing', - linkedUser: { - firstName: 'Gradido', - lastName: 'Akademie', + creationTransactionList: { + contributionCount: 2, + contributionList: [ + { + id: 1, + amount: 5.8, + createdAt: '2022-09-21T11:09:51.000Z', + confirmedAt: null, + contributionDate: '2022-08-01T00:00:00.000Z', + memo: 'für deine Hilfe, Fräulein Rottenmeier', + state: 'PENDING', }, - }, - { - id: 2, - amount: 200, - balanceDate: 0, - creationDate: new Date(), - memo: 'Testing 2', - linkedUser: { - firstName: 'Gradido', - lastName: 'Akademie', + { + id: 2, + amount: '47', + createdAt: '2022-09-21T11:09:28.000Z', + confirmedAt: '2022-09-21T11:09:28.000Z', + contributionDate: '2022-08-01T00:00:00.000Z', + memo: 'für deine Hilfe, Frau Holle', + state: 'CONFIRMED', }, - }, - ], + ], + }, }, })