mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 13:52:09 +03:00
Adds 44 tests across 4 files: - db-quota-pools.test.ts (16 tests): CRUD lifecycle, upsertAllocations replace strategy, FK CASCADE, listAllocationsForApiKey cross-pool. - db-quota-consumption.test.ts (12 tests): getBucket, incrementBucket atomic (100 concurrent), getPair, gcOlderThan boundary semantics. - db-provider-plans.test.ts (10 tests): upsertPlan idempotence, getPlan JSON parsing, listPlans, deletePlan. - db-quota-migrations-idempotency.test.ts (6 tests): schema assertions and double-run idempotency for migrations 073-075.