From b0754c615b5983bb9684415702ecf102c6bf50a2 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Sat, 13 Jun 2026 09:53:06 -0700 Subject: [PATCH] test(ui): drop redundant as-any casts from team mock fixtures The mocked teamListCall resolves an any-typed payload, so the inner team fixtures no longer need casts to carry a null organization_id, a keys_count field, or partial key objects. --- ui/litellm-dashboard/src/components/OldTeams.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/litellm-dashboard/src/components/OldTeams.test.tsx b/ui/litellm-dashboard/src/components/OldTeams.test.tsx index ccbd68c1936..4b076bbfb3c 100644 --- a/ui/litellm-dashboard/src/components/OldTeams.test.tsx +++ b/ui/litellm-dashboard/src/components/OldTeams.test.tsx @@ -935,7 +935,7 @@ describe("OldTeams - organization alias display", () => { { team_id: "1", team_alias: "Test Team", - organization_id: null as any, + organization_id: null, models: ["gpt-4"], max_budget: 100, budget_duration: "1d", @@ -984,7 +984,7 @@ describe("OldTeams - Resources column keys badge", () => { keys_count: 3, members_with_roles: [], spend: 0, - } as any, + }, ], total: 1, page: 1, @@ -1016,10 +1016,10 @@ describe("OldTeams - Resources column keys badge", () => { tpm_limit: 1000, rpm_limit: 1000, created_at: new Date().toISOString(), - keys: [{ token: "t1" } as any, { token: "t2" } as any], + keys: [{ token: "t1" }, { token: "t2" }], members_with_roles: [], spend: 0, - } as any, + }, ], total: 1, page: 1,