From e34654edda0856b3dd9c6b53f890d606b5a3b158 Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 11 Mar 2022 08:13:02 +0100 Subject: [PATCH] change tests for GddTransactionList --- .../src/components/GddTransactionList.spec.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/GddTransactionList.spec.js b/frontend/src/components/GddTransactionList.spec.js index 01566ef13..a301e4da5 100644 --- a/frontend/src/components/GddTransactionList.spec.js +++ b/frontend/src/components/GddTransactionList.spec.js @@ -256,7 +256,7 @@ describe('GddTransactionList', () => { it('shows the date of the transaction', () => { expect(transaction.findAll('.gdd-transaction-list-item-date').at(0).text()).toContain( - 'Mon Feb 28 2022 13:55:47 GMT+0000 (Coordinated Universal Time)', + 'Mon Feb 28 2022 13:55:47', ) }) @@ -285,12 +285,7 @@ describe('GddTransactionList', () => { it('has a bi-gift icon', () => { expect(transaction.findAll('svg').at(1).classes()).toEqual([ - 'bi-gift', 'gradido-global-color-accent', - 'm-mb-1', - 'font2em', - 'b-icon', - 'bi', ]) }) @@ -321,7 +316,7 @@ describe('GddTransactionList', () => { it('shows the date of the transaction', () => { expect(transaction.findAll('.gdd-transaction-list-item-date').at(0).text()).toContain( - 'Fri Feb 25 2022 07:29:26 GMT+0000 (Coordinated Universal Time)', + 'Fri Feb 25 2022 07:29:26', ) }) }) @@ -347,12 +342,7 @@ describe('GddTransactionList', () => { it('has gradido-global-color-accent color', () => { expect(transaction.findAll('svg').at(1).classes()).toEqual([ - 'bi-arrow-right-circle', 'gradido-global-color-accent', - 'm-mb-1', - 'font2em', - 'b-icon', - 'bi', ]) }) @@ -383,7 +373,7 @@ describe('GddTransactionList', () => { it('shows the date of the transaction', () => { expect(transaction.findAll('.gdd-transaction-list-item-date').at(0).text()).toContain( - 'Wed Feb 23 2022 10:55:30 GMT+0000 (Coordinated Universal Time)', + 'Wed Feb 23 2022 10:55:30', ) })