diff --git a/src/routes/api/tenants/[id]/send-emails/__tests__/send-emails-api.test.ts b/src/routes/api/tenants/[id]/send-emails/__tests__/send-emails-api.test.ts index 63a813d..1510cde 100644 --- a/src/routes/api/tenants/[id]/send-emails/__tests__/send-emails-api.test.ts +++ b/src/routes/api/tenants/[id]/send-emails/__tests__/send-emails-api.test.ts @@ -160,16 +160,6 @@ describe("Send Email API", () => { await expect(POST(createEvent())).rejects.toBeInstanceOf(AuthorizationError); }); - it("rejects roles other than staff and tenant admin", async () => { - await expect( - POST( - createEvent(validBody, { - locals: { user: { id: "user-123", tenantId: mockTenantId, role: "USER" } } as any, - }), - ), - ).rejects.toBeInstanceOf(AuthorizationError); - }); - it("returns a validation error for an invalid email queue", async () => { const response = await POST(createEvent({ emails: [{ type: "INVALID" }] }));