mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
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>
This commit is contained in:
parent
ae62311dfd
commit
792852b4f3
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue