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:
ryan 2026-09-03 21:04:55 +00:00
parent ae62311dfd
commit 792852b4f3

View file

@ -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;