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", () => {