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

🧪 test-fix: Update the test case to use the random month except the current month #5207

Conversation

balajis-qb
Copy link

@balajis-qb balajis-qb commented Nov 4, 2024

Closes #5206

Description

As I described in the issue, currently the test cases are failing as in one of the test cases we try to select the month which is same as the current month. I fixed it by generating a random month other than the current month. This is just a test case update.

Screenshots

image

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

…urrent month

- Update the logic of selecting the current month as it won't call onMonthChange when we try to select the same month
@balajis-qb balajis-qb changed the title 🧪 test-fix: Update the test case to use the random month except the c… 🧪 test-fix: Update the test case to use the random month except the current month Nov 4, 2024
@martijnrusschen martijnrusschen merged commit cba30e2 into Hacker0x01:main Nov 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calendar_test.test.tsx Test Case Issue
2 participants