test(ui): name the expected grant in the alias revocation test

This commit is contained in:
lewis 2026-10-16 08:56:17 -04:00
parent 41c0155f97
commit 488ea19355

View file

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