From 0361b99a1105af5c8ae49c8cda4d1bc98b04a8b8 Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 22 Apr 2022 12:17:43 +0200 Subject: [PATCH] fixed test validUntil to string --- .../src/components/TransactionLinks/TransactionLink.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/TransactionLinks/TransactionLink.spec.js b/frontend/src/components/TransactionLinks/TransactionLink.spec.js index 19d0683ab..ad9e4860e 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.spec.js +++ b/frontend/src/components/TransactionLinks/TransactionLink.spec.js @@ -53,7 +53,7 @@ describe('TransactionLink', () => { expect(wrapper.find('.test-qr-code').exists()).toBe(false) }) - it('has delete link button ', () => { + it('has delete link button ', () => { expect(wrapper.find('.test-delete-link').exists()).toBe(true) }) }) @@ -63,7 +63,7 @@ describe('TransactionLink', () => { const now = new Date() jest.clearAllMocks() await wrapper.setProps({ - validUntil: new Date(now.getFullYear(), now.getMonth(), now.getDate() + 2), + validUntil: `${new Date(now.getFullYear(), now.getMonth(), now.getDate() + 2)}`, }) })