From ef8dfe22726b0ce96ffcb9e21b61e880ac231278 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Sun, 11 Aug 2024 12:07:42 +0200 Subject: [PATCH] chore: add test case for apekey permission bug (@fehmer) (#5762) --- backend/__tests__/api/controllers/ape-key.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/__tests__/api/controllers/ape-key.spec.ts b/backend/__tests__/api/controllers/ape-key.spec.ts index 4855ee5f4109..5f33d32fea25 100644 --- a/backend/__tests__/api/controllers/ape-key.spec.ts +++ b/backend/__tests__/api/controllers/ape-key.spec.ts @@ -15,7 +15,7 @@ describe("ApeKeyController", () => { beforeEach(async () => { await enableApeKeysEndpoints(true); - getUserMock.mockResolvedValue(user(uid, { canManageApeKeys: true })); + getUserMock.mockResolvedValue(user(uid, {})); vi.useFakeTimers(); vi.setSystemTime(1000); });