test: satisfy openai postJsonRequest mock shape

This commit is contained in:
Tak Hoffman
2026-04-10 16:44:27 -05:00
parent 67f1a20136
commit 43b91c0ab3

View File

@@ -80,6 +80,7 @@ describe("openai plugin", () => {
mode: "api-key",
});
const postJsonRequestSpy = vi.spyOn(providerHttp, "postJsonRequest").mockResolvedValue({
finalUrl: "https://api.openai.com/v1/images/generations",
response: {
ok: true,
json: async () => ({
@@ -147,6 +148,7 @@ describe("openai plugin", () => {
mode: "api-key",
});
const postJsonRequestSpy = vi.spyOn(providerHttp, "postJsonRequest").mockResolvedValue({
finalUrl: "https://api.openai.com/v1/images/edits",
response: {
ok: true,
json: async () => ({