From 6096ea51f8e89e63bec40579649a7cd10ffcd849 Mon Sep 17 00:00:00 2001 From: Ravi Tharuma <25951435+RaviTharuma@users.noreply.github.com> Date: Sun, 30 Aug 2026 16:10:22 +0200 Subject: [PATCH] test(ui): correct inactive auto-fetch expectation (#12098) Corrige a expectativa de auto-fetch inativo num teste de UI existente. Validado no worktree combinado (vitest 114/114). Obrigado! --- tests/unit/ui/use-provider-models-auto-fetch.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() + ); }); });