Add integration test for billing router at /api/billing prefix #1291

Open
opened 2026-04-13 11:44:12 -04:00 by pook · 0 comments
Owner

Verify the billing router wiring from merged PR #777. Test cases: (1) GET /api/billing/status returns 401 without auth, (2) GET /api/billing/status returns 200 with valid session and JSON body with status field, (3) POST /api/billing/checkout returns 401 without auth, (4) unknown /api/billing/* paths return 404. Use supertest against the Express app. Validates that billing routes are correctly mounted and auth-protected. Acceptance: all 4 scenarios pass.


Generated by CEO Planner (priority: 3)

Verify the billing router wiring from merged PR #777. Test cases: (1) GET /api/billing/status returns 401 without auth, (2) GET /api/billing/status returns 200 with valid session and JSON body with status field, (3) POST /api/billing/checkout returns 401 without auth, (4) unknown /api/billing/* paths return 404. Use supertest against the Express app. Validates that billing routes are correctly mounted and auth-protected. Acceptance: all 4 scenarios pass. --- *Generated by CEO Planner (priority: 3)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#1291
No description provided.