Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

test(models): the LoRA tab test follows the CivitAI download helper

purple2feeb3d02112
diff --git a/src/components/models/__tests__/die-loras-haben-einen-eigenen-reiter.test.tsx b/src/components/models/__tests__/die-loras-haben-einen-eigenen-reiter.test.tsx
index 7d5efd90..c701ecc7 100644
--- a/src/components/models/__tests__/die-loras-haben-einen-eigenen-reiter.test.tsx
+++ b/src/components/models/__tests__/die-loras-haben-einen-eigenen-reiter.test.tsx
@@ -46,8 +46,10 @@ vi.mock('../../../api/backend', () => ({
vi.mock('../../../api/discover', () => ({
searchCivitaiModels: (query: string, type: string, key?: string, host?: string) =>
searchCivitaiModels(query, type, key, host),
- startModelDownload: (url: string, subfolder: string, filename: string) =>
- startModelDownload(url, subfolder, filename),
+ // The panel downloads through startCivitaiDownload; for a safetensors LoRA
+ // that is exactly one startModelDownload (api/discover).
+ startCivitaiDownload: (m: { downloadUrl: string; subfolder: string; filename: string }) =>
+ startModelDownload(m.downloadUrl, m.subfolder, m.filename),
}))
vi.mock('../../../api/comfyui', () => ({
checkComfyConnection: vi.fn(async () => comfyLaeuft),