test: include openai guarded fetch final url

This commit is contained in:
Peter Steinberger
2026-04-10 22:45:03 +01:00
parent 43b91c0ab3
commit 49ec2f15c3

View File

@@ -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);