jonastirona/ao5

Test: Add unit tests for formatTime utility

Aperta

#3 aperta il 2 dic 2025

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (0 fork)auto 404
good first issuetesting

Metriche repository

Star
 (2 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor