This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/apps
Flea Flicker 0fa53645b9 fix(tests): inject mock staff context in clients test suite
RBAC Phase 2 added row-level scoping that reads c.get("staff") on every
clients route. The test app had no middleware setting this context, causing
a TypeError (undefined.role) and 500 responses on all GET tests.

Add a manager-role mock staff middleware to the test Hono app so the
existing tests continue to cover the non-groomer code path.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-27 01:52:25 +00:00
..