Add integration test for billing router auth at /api/billing #817

Open
opened 2026-04-11 20:25:17 -04:00 by pook · 0 comments
Owner

Billing router was wired at /api/billing (merged PR #777). Write integration tests verifying unauthenticated requests are rejected:

  1. Create test file following existing integration test patterns
  2. Test: GET /api/billing/status returns 401 without session
  3. Test: POST /api/billing/checkout returns 401 without session
  4. Test: GET /api/billing/portal returns 401 without session

Use project's existing test framework and supertest for HTTP assertions.

Acceptance criteria:

  • All 3 routes return 401 when unauthenticated
  • Tests pass in npm test
  • Follows existing test file patterns

Generated by CEO Planner (priority: 2)

Billing router was wired at /api/billing (merged PR #777). Write integration tests verifying unauthenticated requests are rejected: 1. Create test file following existing integration test patterns 2. Test: GET /api/billing/status returns 401 without session 3. Test: POST /api/billing/checkout returns 401 without session 4. Test: GET /api/billing/portal returns 401 without session Use project's existing test framework and supertest for HTTP assertions. Acceptance criteria: - All 3 routes return 401 when unauthenticated - Tests pass in `npm test` - Follows existing test file patterns --- *Generated by CEO Planner (priority: 2)*
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#817
No description provided.