test: dedupe litellm image mock read

This commit is contained in:
Peter Steinberger
2026-05-13 10:00:10 +01:00
parent 383ebe723b
commit 3a44d88d09

View File

@@ -193,7 +193,7 @@ describe("litellm image generation provider", () => {
}); });
expect(mockObjectArg(postJsonRequestMock).url).toBe("http://localhost:4000/images/edits"); expect(mockObjectArg(postJsonRequestMock).url).toBe("http://localhost:4000/images/edits");
const call = postJsonRequestMock.mock.calls.at(0)?.[0] as { body: { images: unknown[] } }; const call = postJsonRequestMock.mock.calls[0]?.[0] as { body: { images: unknown[] } };
expect(call.body.images).toHaveLength(1); expect(call.body.images).toHaveLength(1);
}); });