Description
The StreakCounter component currently lacks dedicated unit tests. This component is responsible for displaying attendance streak information, including the streak count, singular/plural day formatting, and visual streak indicator. Adding tests will help ensure the displayed streak information remains accurate during future changes.
Steps to Reproduce
- Navigate to
components/gamification/StreakCounter.jsx.
- Check the existing test suite.
- Observe that no dedicated test file exists for this component.
- Notice there is no automated coverage validating its rendering and streak count behavior.
Expected Behavior
A test suite should verify:
- Attendance streak label renders correctly.
- Fire emoji indicator is displayed.
- Singular day format is used for a streak of 1.
- Plural day format is used for streaks greater than 1.
- Default streak value is displayed when no prop is provided.
Screenshots
Not applicable.
Environment
- OS: Windows, macOS, Linux
- Browser: Chrome, Firefox, Safari
- Version: Latest supported versions
Description
The
StreakCountercomponent currently lacks dedicated unit tests. This component is responsible for displaying attendance streak information, including the streak count, singular/plural day formatting, and visual streak indicator. Adding tests will help ensure the displayed streak information remains accurate during future changes.Steps to Reproduce
components/gamification/StreakCounter.jsx.Expected Behavior
A test suite should verify:
Screenshots
Not applicable.
Environment