kaitranntt
ad8327d17e
test(cliproxy): add unit tests for quota fetchers and auth utilities
Add comprehensive unit tests for:
- buildCodexQuotaWindows(): window parsing, clamping, reset time calculation
- buildGeminiCliBuckets(): bucket grouping, model series, token types
- resolveGeminiCliProjectId(): project ID extraction from account field
- sanitizeEmail(): email to filename conversion
- isTokenExpired(): token expiry validation
Also removes unused 'preferred' field from GEMINI_CLI_GROUPS (YAGNI)
39 new tests covering edge cases:
- Percentage clamping (0-100, 0-1)
- Missing/null fields
- camelCase/snake_case API responses
- Empty inputs
- Invalid date strings
Addresses code review feedback on PR #395
2026-01-29 15:01:26 -05:00
..
2026-01-06 12:16:22 -05:00
2025-12-25 16:43:39 -05:00
2026-01-29 15:01:26 -05:00
2026-01-28 13:26:40 -05:00
2026-01-18 10:10:01 -05:00
2026-01-27 22:20:15 -05:00
2026-01-14 18:05:49 +01:00
2025-12-27 01:14:54 -05:00
2026-01-21 17:25:56 -05:00
2026-01-23 23:35:17 -05:00
2026-01-28 13:26:40 -05:00
2026-01-28 14:12:42 -05:00
2026-01-28 15:11:00 -05:00
2026-01-21 17:25:56 -05:00
2026-01-01 02:00:30 -05:00
2026-01-28 13:26:40 -05:00
2025-12-24 03:36:48 -05:00
2026-01-01 02:00:30 -05:00
2026-01-29 15:01:26 -05:00
2026-01-29 15:01:26 -05:00
2025-12-24 03:36:48 -05:00
2026-01-23 23:47:09 -05:00
2025-12-24 04:15:04 -05:00
2025-12-24 04:15:04 -05:00
2026-01-26 16:19:56 -05:00
2026-01-08 15:20:37 -05:00
2025-12-24 04:15:04 -05:00
2025-12-24 04:15:04 -05:00
2025-12-25 05:15:49 -05:00