jonastirona/ao5

Test: Add unit tests for formatTime utility

Open

#3 opened on Dec 2, 2025

 (0 comments) (0 reactions) (0 assignees)TypeScript (0 forks)auto 404
good first issuetesting

Repository metrics

Stars
 (2 stars)
PR merge metrics
 (PR metrics pending)

Description

Description: Our time formatting logic needs robust testing to ensure it handles edge cases correctly.

File: apps/web/src/lib/formatTime.test.ts

Task:

  • Create a test file for the formatTime function.
  • Write tests covering sub-minute times (e.g., 9.55).
  • Write tests covering multi-minute times (e.g., 1:05.23).
  • Write tests for zero values.
  • Write tests for large values.

Contributor guide