From 8df93df392f502dc0c49c2fd053037db341f2a37 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Fri, 22 Apr 2022 11:42:23 +0200 Subject: [PATCH] Update frontend/src/components/TransactionLinks/TransactionLink.spec.js Co-authored-by: Moriz Wahl --- frontend/src/components/TransactionLinks/TransactionLink.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/TransactionLinks/TransactionLink.spec.js b/frontend/src/components/TransactionLinks/TransactionLink.spec.js index 044cd3402..f7916c105 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.spec.js +++ b/frontend/src/components/TransactionLinks/TransactionLink.spec.js @@ -60,6 +60,7 @@ describe('TransactionLink', () => { describe('Link validUntil Date is valid ', () => { beforeEach(async () => { + const now = new Date() jest.clearAllMocks() await wrapper.setProps({ validUntil: new Date(now.getFullYear(), now.getMonth(), now.getDate() + 2),