From dc8ea2199f0e6958c55c3ab20063ccbf80933d4b Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 2 Mar 2022 15:10:09 +0100 Subject: [PATCH] tests for GddTransactionList --- .../GddTransactionList.spec.js | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js index 450415dd8..0e6962f4e 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js @@ -52,7 +52,7 @@ describe('GddTransactionList', () => { beforeEach(async () => { await wrapper.setProps({ transactions: [], - transactionCount: 0, + count: 0, }) }) it('Transactions Array is empty, 0 transactions', () => { @@ -64,7 +64,7 @@ describe('GddTransactionList', () => { beforeEach(async () => { await wrapper.setProps({ transactions: [], - transactionCount: -1, + count: -1, }) }) it('renders text saying that there are error.empty-transactionlist ', () => { @@ -91,34 +91,34 @@ describe('GddTransactionList', () => { await wrapper.setProps({ transactions: [ { - balance: 19.93, - date: '2021-05-25T17:38:13+00:00', + amount: 19.93, + balanceDate: '2021-05-25T17:38:13+00:00', memo: 'Alles Gute zum Geburtstag', - name: 'Bob der Baumeister', - transaction_id: 29, - type: 'send', - decay: { balance: '0.5' }, + linkedUser: { firstName: 'Bob', lastName: 'der Baumeister' }, + id: 29, + typeId: 'SEND', + decay: { decay: '0.5' }, }, { - balance: 1000, - date: '2021-04-29T15:34:49+00:00', + amount: 1000, + balanceDate: '2021-04-29T15:34:49+00:00', memo: 'Gut das du da bist!', - name: 'Gradido Akademie', - transaction_id: 3, - type: 'creation', + linkedUser: { firstName: 'Gradido', lastName: 'Akademie' }, + id: 3, + typeId: 'CREATION', }, { - balance: 314.98, - date: '2021-04-29T17:26:40+00:00', + amount: 314.98, + balanceDate: '2021-04-29T17:26:40+00:00', memo: 'Für das Fahrrad!', - name: 'Jan Ulrich', - transaction_id: 8, - type: 'receive', - decay: { balance: '1.5' }, + linkedUser: { firstName: 'Jan', lastName: 'Ulrich' }, + id: 8, + typeId: 'RECEIVE', + decay: { decay: '1.5' }, }, { - balance: 1.07, - type: 'decay', + amount: 1.07, + typeId: 'DECAY', }, ], transactionCount: 12,