fix(api): remove dead code in rbac test
Remove unused `app` variable from 'returns 403 when staff record is not resolved' test - the test uses `testApp` instead. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -289,7 +289,6 @@ describe("requireSuperUser", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("returns 403 when staff record is not resolved", async () => {
|
it("returns 403 when staff record is not resolved", async () => {
|
||||||
const app = buildWithStaff(MANAGER, requireSuperUser());
|
|
||||||
// Manually remove staff from context to simulate unresolved staff
|
// Manually remove staff from context to simulate unresolved staff
|
||||||
const testApp = new Hono<AppEnv>();
|
const testApp = new Hono<AppEnv>();
|
||||||
testApp.use("*", async (c, next) => {
|
testApp.use("*", async (c, next) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user