fixed test validUntil to string

This commit is contained in:
ogerly 2022-04-22 12:17:43 +02:00
parent f6c64af047
commit 0361b99a11

View File

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