mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
test: include openai guarded fetch final url
This commit is contained in:
@@ -92,6 +92,7 @@ describe("openai plugin", () => {
|
||||
],
|
||||
}),
|
||||
} as Response,
|
||||
finalUrl: "https://api.openai.com/v1/images/generations",
|
||||
release: vi.fn(async () => {}),
|
||||
});
|
||||
vi.spyOn(providerHttp, "assertOkOrThrowHttpError").mockResolvedValue(undefined);
|
||||
@@ -159,6 +160,7 @@ describe("openai plugin", () => {
|
||||
],
|
||||
}),
|
||||
} as Response,
|
||||
finalUrl: "https://api.openai.com/v1/images/edits",
|
||||
release: vi.fn(async () => {}),
|
||||
});
|
||||
vi.spyOn(providerHttp, "assertOkOrThrowHttpError").mockResolvedValue(undefined);
|
||||
|
||||
Reference in New Issue
Block a user