talawa-admin
talawa-admin copied to clipboard
Added test cases for YearlyEventCalendar.tsx
What kind of change does this PR introduce?
Testing
Issue Number:
Fixes #3584
Snapshots/Videos:
N/A
If relevant, did you update the documentation?
No
Summary
Added a new test file for YearlyEventCalender
Does this PR introduce a breaking change?
No
Checklist
CodeRabbit AI Review
- [ ] I have reviewed and addressed all critical issues flagged by CodeRabbit AI
- [ ] I have implemented or provided justification for each non-critical suggestion
- [ ] I have documented my reasoning in the PR comments where CodeRabbit AI suggestions were not implemented
Test Coverage
- [ ] I have written tests for all new changes/features
- [ ] I have verified that test coverage meets or exceeds 95%
- [ ] I have run the test suite locally and all tests pass
Other information
N/A
Have you read the contributing guide?
Yes
Summary by CodeRabbit
-
Tests
- Introduced a comprehensive test suite for the YearlyEventCalender component.
- Validates proper display of all months and the current year.
- Confirms smooth navigation between years and accurate event filtering based on user roles.
- Assesses interaction functionality for expanding/collapsing event lists and highlights the current day correctly.