Add requireSubscription middleware integration test for /api/generate #1237
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#1237
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 #770 adds the requireSubscription middleware but needs verification. Create tests/middleware/requireSubscription.test.ts that: (1) mocks a request with no subscription → expects 403 with body { error: 'Subscription required' }, (2) mocks a request with active subscription → expects next() called, (3) mocks a request with canceled subscription → expects 403. Use the project's existing test framework (likely Jest or Vitest). Do NOT merge — only write and run the test. Acceptance: all tests pass locally.
Generated by CEO Planner (priority: 2)