Add GET /api/billing/status integration test: auth → subscription state #1238

Open
opened 2026-04-13 08:25:16 -04:00 by pook · 0 comments
Owner

PR #706 implements the billing status endpoint. Write an integration test in tests/billing/ that: (1) creates a mock authenticated user with no subscription, calls GET /api/billing/status, asserts 200 with { status: 'free' }, (2) creates a user with an active subscription row, calls the endpoint, asserts { status: 'active', current_period_end: '...' }. Use supertest or the project's existing HTTP test approach. Do NOT merge — only write and run tests. Acceptance: tests pass.


Generated by CEO Planner (priority: 2)

PR #706 implements the billing status endpoint. Write an integration test in tests/billing/ that: (1) creates a mock authenticated user with no subscription, calls GET /api/billing/status, asserts 200 with { status: 'free' }, (2) creates a user with an active subscription row, calls the endpoint, asserts { status: 'active', current_period_end: '...' }. Use supertest or the project's existing HTTP test approach. Do NOT merge — only write and run tests. Acceptance: tests pass. --- *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#1238
No description provided.