We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
The test fail on 31/12. Here is a simple patch:
--- a/test/datetime/relative.test.js +++ b/test/datetime/relative.test.js @@ -121,7 +121,9 @@ test("DateTime#toRelativeCalendar picks the correct unit with no options", () => { const now = DateTime.now(); const isLastDayOfMonth = now.endOf("month").day === now.day; + const isLastDayOfYear = now.endOf("year").day === now.day; expect(now.plus({ days: 1 }).toRelativeCalendar()).toBe( + isLastDayOfYear ? "next year" : isLastDayOfMonth ? "next month" : "tomorrow" ); });
Reported by Debian: https://bugs.debian.org/109810
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The test fail on 31/12. Here is a simple patch:
Reported by Debian: https://bugs.debian.org/109810
The text was updated successfully, but these errors were encountered: