mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: dedupe litellm image mock read
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user