Skip to content
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

calendar_test.test.tsx Test Case Issue #5206

Closed
balajis-qb opened this issue Nov 4, 2024 · 0 comments · Fixed by qburst/react-datepicker-3#36 or #5207
Closed

calendar_test.test.tsx Test Case Issue #5206

balajis-qb opened this issue Nov 4, 2024 · 0 comments · Fixed by qburst/react-datepicker-3#36 or #5207

Comments

@balajis-qb
Copy link
Contributor

Describe the bug
In calendar_test.test.tsx file - the test block calls onMonthChange prop when month changed from month dropdown is failing as it's trying to call the current month (November). But in the month_dropdown.tsx we added a check to call onMonthChange if the newly selected month is not the currently selected month.

image

image

As you can see in the above test, we selected the November month which is the current month. As a result of it the test cases are failing.

To Reproduce
Simply run the test cases by executing yarn test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant