Session 7h: Stripe products, tier config, scan limits, response gating, free tier
This commit is contained in:
@@ -220,8 +220,13 @@ const VALID_PARLAY = {
|
||||
],
|
||||
};
|
||||
|
||||
// Session 7h: scan-limit middleware mounts on /api/scan/parlay. Reset
|
||||
// between tests so the per-user 24h quota doesn't bleed across cases.
|
||||
const { __internals: scanLimitInternals } = require('../../src/middleware/scanLimit');
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
scanLimitInternals.resetForTests();
|
||||
});
|
||||
|
||||
describe('POST /api/scan/parlay', () => {
|
||||
|
||||
Reference in New Issue
Block a user