From 8618d7894e2787b4fe036a708673e51c09d34c3c Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 6 Mar 2022 12:00:38 +0100 Subject: [PATCH] yarn test fixed --- .../CreationTransactionListFormular.spec.js | 44 ++++++------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/admin/src/components/CreationTransactionListFormular.spec.js b/admin/src/components/CreationTransactionListFormular.spec.js index 7331184b7..5acff8ab7 100644 --- a/admin/src/components/CreationTransactionListFormular.spec.js +++ b/admin/src/components/CreationTransactionListFormular.spec.js @@ -9,41 +9,25 @@ const apolloQueryMock = jest.fn().mockResolvedValue({ transactionList: { transactions: [ { - type: 'creation', - balance: 100, - decayStart: 0, - decayEnd: 0, - decayDuration: 0, + id: 1, + amount: 100, + balanceDate: 0, + creationDate: new Date(), memo: 'Testing', - transactionId: 1, - name: 'Gradido Akademie', - email: 'bibi@bloxberg.de', - date: new Date(), - decay: { - balance: 0.01, - decayStart: 0, - decayEnd: 0, - decayDuration: 0, - decayStartBlock: 0, + linkedUser: { + firstName: 'Gradido', + lastName: 'Akademie', }, }, { - type: 'creation', - balance: 200, - decayStart: 0, - decayEnd: 0, - decayDuration: 0, + id: 2, + amount: 200, + balanceDate: 0, + creationDate: new Date(), memo: 'Testing 2', - transactionId: 2, - name: 'Gradido Akademie', - email: 'bibi@bloxberg.de', - date: new Date(), - decay: { - balance: 0.01, - decayStart: 0, - decayEnd: 0, - decayDuration: 0, - decayStartBlock: 0, + linkedUser: { + firstName: 'Gradido', + lastName: 'Akademie', }, }, ],