Add GET /api/billing/status integration test: auth → subscription state #1238
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)