From 792852b4f362bcb9db9462b54caf7be62eb29edd Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 3 Sep 2026 21:04:55 +0000 Subject: [PATCH] test(ui): name the mocked user list body to stay within the inline-object lint budget Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- ui/litellm-dashboard/src/components/networking.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/networking.test.ts b/ui/litellm-dashboard/src/components/networking.test.ts index 8dcd8c39d9d..7a220dd4711 100644 --- a/ui/litellm-dashboard/src/components/networking.test.ts +++ b/ui/litellm-dashboard/src/components/networking.test.ts @@ -824,7 +824,8 @@ describe("userListCall search serialization", () => { }); const mockOkFetch = () => { - const body = JSON.stringify({ users: [], total: 0, page: 1, page_size: 25, total_pages: 0 }); + const emptyPage = { users: [], total: 0, page: 1, page_size: 25, total_pages: 0 }; + const body = JSON.stringify(emptyPage); const mockFetch = vi.fn().mockResolvedValue({ ok: true, text: vi.fn().mockResolvedValue(body) } as any); global.fetch = mockFetch as any; return mockFetch;