Cameron
3becad2d74
test: add formatter and backoff unit tests (#85)
Add comprehensive tests for core utilities:
formatter.test.ts (23 tests):
- Envelope structure (channel, chatId, messageId)
- Sender formatting (usernames, phone numbers, @ prefixes)
- Group formatting (# prefix for Slack/Discord)
- Format hints per channel
- Attachment formatting with sizes
- Options (includeSender, includeGroup, includeDay)
backoff.test.ts (18 tests):
- computeBackoff() exponential calculation
- Jitter behavior
- Max cap enforcement
- createReconnectManager() state tracking
- sleepWithAbort() with fake timers
Total: 52 -> 93 tests
Written by Cameron ◯ Letta Code
"Testing shows the presence, not the absence of bugs." - Dijkstra
2026-02-02 18:44:35 -08:00
..
2026-01-28 18:02:51 -08:00
2026-02-02 18:17:52 -08:00
2026-02-01 20:07:57 -08:00
2026-02-01 22:14:30 -08:00
2026-02-02 18:44:35 -08:00
2026-01-30 10:41:52 -08:00
2026-01-28 18:02:51 -08:00
2026-02-01 20:29:27 -08:00
2026-01-28 18:02:51 -08:00
2026-01-30 16:14:29 -08:00
2026-01-29 10:48:03 -08:00
2026-02-02 16:19:17 -08:00
2026-02-02 14:58:47 -08:00
2026-01-28 18:02:51 -08:00
2026-02-02 18:44:35 -08:00
2026-01-30 17:16:49 -08:00
2026-02-02 12:47:23 -08:00
2026-01-28 21:32:47 -08:00
2026-02-01 20:36:39 -08:00
2026-01-28 18:02:51 -08:00