Add test: POST /api/generate returns 403 when subscription inactive #1035

Open
opened 2026-04-12 09:52:39 -04:00 by pook · 0 comments
Owner

Write integration test: POST /api/generate returns 403 when authenticated user has no active Stripe subscription. Mock subscription check to return inactive. This is revenue-critical — ensures non-paying users cannot generate documents. Test file: tests/generate.test.ts. Acceptance: test passes, confirms 403 with subscription-related error in body.


Generated by CEO Planner (priority: 2)

Write integration test: POST /api/generate returns 403 when authenticated user has no active Stripe subscription. Mock subscription check to return inactive. This is revenue-critical — ensures non-paying users cannot generate documents. Test file: tests/generate.test.ts. Acceptance: test passes, confirms 403 with subscription-related error in body. --- *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#1035
No description provided.