mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:04:45 +00:00
test: dedupe openai image mock reads
This commit is contained in:
@@ -1163,7 +1163,7 @@ describe("openai image generation provider", () => {
|
||||
],
|
||||
});
|
||||
|
||||
const body = postJsonRequestMock.mock.calls.at(0)?.[0].body as {
|
||||
const body = postJsonRequestMock.mock.calls[0]?.[0].body as {
|
||||
input: Array<{ content: Array<Record<string, string>> }>;
|
||||
};
|
||||
expect(body.input[0]?.content).toEqual([
|
||||
@@ -1192,7 +1192,7 @@ describe("openai image generation provider", () => {
|
||||
});
|
||||
|
||||
expect(postJsonRequestMock).toHaveBeenCalledTimes(2);
|
||||
const firstBody = postJsonRequestMock.mock.calls.at(0)?.[0].body as {
|
||||
const firstBody = postJsonRequestMock.mock.calls[0]?.[0].body as {
|
||||
tools: Array<Record<string, unknown>>;
|
||||
};
|
||||
expect(firstBody.tools[0]).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user