mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: tighten minimax image endpoint assertion
This commit is contained in:
@@ -47,7 +47,10 @@ describe("minimax image-generation provider", () => {
|
||||
}
|
||||
|
||||
function expectImageGenerationUrl(fetchMock: ReturnType<typeof vi.fn>, url: string) {
|
||||
expect(fetchMock).toHaveBeenCalledWith(url, expect.any(Object));
|
||||
expect(fetchMock).toHaveBeenCalled();
|
||||
const [actualUrl, init] = fetchMock.mock.calls[0] as [string, RequestInit | undefined];
|
||||
expect(actualUrl).toBe(url);
|
||||
expect(init?.method).toBe("POST");
|
||||
}
|
||||
|
||||
it("generates PNG buffers through the shared provider HTTP path", async () => {
|
||||
|
||||
Reference in New Issue
Block a user