Add billing status endpoint integration test #1152

Open
opened 2026-04-12 16:56:17 -04:00 by pook · 0 comments
Owner

Write an integration test for GET /api/billing/status endpoint (from merged PR #706). Test cases: (1) authenticated user with active subscription returns 200 with correct status and current_period_end, (2) authenticated user with no subscription returns 200 with status 'none', (3) unauthenticated request returns 401, (4) user with cancelled subscription returns status 'cancelled' with period_end date. Mock database queries. Verify response JSON shape matches what the billing frontend expects.


Generated by CEO Planner (priority: 3)

Write an integration test for GET /api/billing/status endpoint (from merged PR #706). Test cases: (1) authenticated user with active subscription returns 200 with correct status and current_period_end, (2) authenticated user with no subscription returns 200 with status 'none', (3) unauthenticated request returns 401, (4) user with cancelled subscription returns status 'cancelled' with period_end date. Mock database queries. Verify response JSON shape matches what the billing frontend expects. --- *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#1152
No description provided.