mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 02:42:24 +03:00
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:
@@ -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()
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user