Update frontend/src/components/TransactionLinks/TransactionLink.spec.js

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
Alexander Friedland 2022-04-22 11:42:23 +02:00 committed by GitHub
parent e4214bc193
commit 8df93df392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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