mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-04 02:31:27 +00:00
fix(ui): mock networking's getProxyBaseUrl/getGlobalLitellmHeaderName in ModelsAndEndpointsView test
ModelsAndEndpointsView renders TeamInfo -> TeamMemberTab, which now imports teamMemberBulkUpdate.ts. That module builds its API client from getProxyBaseUrl/getGlobalLitellmHeaderName at import time, so the existing @/components/networking mock (which predates the bulk-update route) needs both exports or the render throws on collection.
This commit is contained in:
parent
7fff840574
commit
1a80953ab8
1 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,8 @@ vi.mock("@/components/networking", () => ({
|
|||
getUiSettings: vi.fn().mockResolvedValue({ values: {} }),
|
||||
latestHealthChecksCall: vi.fn().mockResolvedValue({ latest_health_checks: {} }),
|
||||
getModelCostMapReloadStatus: vi.fn().mockResolvedValue({}),
|
||||
getProxyBaseUrl: vi.fn(() => ""),
|
||||
getGlobalLitellmHeaderName: vi.fn(() => "Authorization"),
|
||||
}));
|
||||
|
||||
vi.mock("@/app/(dashboard)/models-and-endpoints/components/ModelAnalyticsTab/ModelAnalyticsTab", () => ({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue