From 488ea19355129a705b7d73c5ff0f6536f2a99df5 Mon Sep 17 00:00:00 2001 From: lewis Date: Fri, 16 Oct 2026 08:56:17 -0400 Subject: [PATCH] test(ui): name the expected grant in the alias revocation test --- .../customers/_components/customerPayload.test.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/customerPayload.test.ts b/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/customerPayload.test.ts index bd81a9b30c7..5e701ddb2f2 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/customerPayload.test.ts +++ b/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/customerPayload.test.ts @@ -355,15 +355,16 @@ describe("customer payload", () => { ...toCustomerFormValues(stored), mcp_servers_and_groups: { servers: [keptServer.server_id], accessGroups: [], toolsets: [] }, }; - - expect( - buildCustomerPayload(values, stored, [sharedServer, anotherSharedServer, keptServer], []).object_permission, - ).toEqual({ + const grant = { mcp_servers: [keptServer.server_id], mcp_access_groups: [], mcp_toolsets: [], mcp_tool_permissions: {}, - }); + }; + + expect( + buildCustomerPayload(values, stored, [sharedServer, anotherSharedServer, keptServer], []).object_permission, + ).toEqual(grant); }); it("keeps the stored ID of an existing customer exactly as stored", () => {