Summary
frontend/src/utils/date.ts has several date formatting helpers. Add focused tests for invalid, empty, and Date object inputs for formatLocaleDate and formatLocaleTime.
Scope
- Update or add tests near frontend/testing/unit/utils/date.test.ts.
- Use fixed dates and, if needed, mocked timezone/localStorage.
- Avoid dynamic current-date assertions.
Acceptance Criteria
- Invalid/empty inputs return the expected fallback string.
- Date object inputs format consistently.
- Tests are deterministic across timezones.
Summary
frontend/src/utils/date.ts has several date formatting helpers. Add focused tests for invalid, empty, and Date object inputs for formatLocaleDate and formatLocaleTime.
Scope
Acceptance Criteria