1 Commits

Author SHA1 Message Date
wangdl
9c7247aa90 test: add unit tests for user-ai-quota.service (API-AI-064)
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 48s
- 15 tests covering all 4 public methods
- checkQuota: pass under limits, defaults, null usage, job/token exceeded
- incrementJobCount: correct upsert params, apiKeyMode routing
- recordTokenUsage: all token fields, costEstimate default=0
- getUsage: both modes parallel, defaults for null records, mixed

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-18 12:12:57 +08:00