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!
This commit is contained in:
Ravi Tharuma
2026-08-30 16:10:22 +02:00
committed by GitHub
parent 54a1114382
commit 6096ea51f8

View File

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