test: Added test cases for SwechaLogo and PeerReviewCard
Issue Summary
Added test cases for SwechaLogo and PeerReviewCard components to improve test coverage and ensure consistent UI behavior. Currently, these components lack sufficient unit tests, which may lead to unnoticed issues during future updates. The expected behavior is to have reliable and well-tested components that maintain stability across changes.
Problem Statement
The SwechaLogo and PeerReviewCard components do not have adequate test coverage. Developers and contributors working on UI components are affected due to the lack of validation for component behavior. This can lead to UI inconsistencies or bugs going undetected, impacting user experience. The issue can be observed by checking the existing test suite, where these components are either missing or insufficiently tested.
Proposed Solution
Implement unit test cases for both SwechaLogo and PeerReviewCard components. Use a testing framework (e.g., Jest + React Testing Library) to validate rendering and behavior. Update or create test files under the tests directory. Ensure all critical scenarios like rendering, props handling, and UI output are covered. No major blockers expected; requires understanding of component structure and props.
Test Cases
| Test ID | Description | Expected Result |
|---|---|---|
| TC-001 | Render SwechaLogo | Logo displays correctly |
| TC-002 | Render PeerReviewCard with props | Data displays correctly |
| TC-003 | Handle missing props | No crash, fallback shown |
Implementation Details
- Add test files for both components
- Ensure components are testable
- Follow existing test structure
Definition of Done
- Tests implemented and passing
- Components render correctly
- Code reviewed and formatted properly