diff --git a/tests/unit/ui/use-provider-models-auto-fetch.test.tsx b/tests/unit/ui/use-provider-models-auto-fetch.test.tsx index 30f5ad1d75..45afe05899 100644 --- a/tests/unit/ui/use-provider-models-auto-fetch.test.tsx +++ b/tests/unit/ui/use-provider-models-auto-fetch.test.tsx @@ -188,8 +188,9 @@ describe("useProviderModels upstream auto-fetch", () => { ); mounted.unmount(); - expect(fetchMock).toHaveBeenCalledWith("/api/providers/connection-1/sync-models?mode=sync", { - method: "POST", - }); + expect(fetchMock).not.toHaveBeenCalledWith( + "/api/providers/connection-inactive/sync-models?mode=sync", + expect.anything() + ); }); });