1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Merge pull request #127 from shyrynaz/fix-datepicker-tests

fix date-picker tests
This commit is contained in:
Josh Pigford 2024-01-18 07:54:08 -06:00 committed by GitHub
commit dc11e5254c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,6 @@ import { fireEvent, render, screen, waitFor } from '@testing-library/react'
import { DatePicker } from './' import { DatePicker } from './'
import { DateTime } from 'luxon' import { DateTime } from 'luxon'
// Set date to Oct 29, 2021 to keep snapshots consistent
beforeAll(() => jest.useFakeTimers().setSystemTime(new Date('2021-10-29 12:00:00')))
// DatePicker configuration // DatePicker configuration
const minDate = DateTime.now().minus({ years: 2 }) const minDate = DateTime.now().minus({ years: 2 })
const maxDate = DateTime.now() const maxDate = DateTime.now()