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),