Files
lettabot/src
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-30 17:16:49 -08:00