-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Unit tests in src/utils/date.test.js fail in early January #2090
Labels
Comments
yurishkuro
added a commit
that referenced
this issue
Jan 5, 2024
## Which problem is this PR solving? - Resolves #2090 ## Description of the changes - Mock the current date to a fix value to avoid time of year variations in behavior --------- Signed-off-by: Yuri Shkuro <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Tests started failing.
The reason is because this test tries to render
today-4
and expects MM-DAY, but when in the first 4 days of January this renders the date with the previous year.The text was updated successfully, but these errors were encountered: