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(downloads): the wording guards follow the tray's bundle line into lib/download-tray

purple877e22526d94
diff --git a/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts b/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts
index e536850f..ba41ea36 100644
--- a/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts
+++ b/src/lib/__tests__/die-oberflaeche-spricht-englisch-und-zaehlt-richtig.test.ts
@@ -53,7 +53,9 @@ describe('die Stellen, an denen es stand', () => {
for (const [datei, stelle] of [
['components/models/ModelTiles.tsx', 'countLabel(bundle.files.length'],
['components/models/DiscoverModels.tsx', 'countLabel(confirmDownload.files.length'],
- ['components/layout/DownloadBadge.tsx', 'countLabel(files.length'],
+ // Die Zeile des Download-Streifens entsteht seit dem 03.10.2026 in
+ // lib/download-tray (bundleVerdict), dort wird auch gezaehlt.
+ ['lib/download-tray.ts', "countLabel(done, 'file')"],
] as const) {
const src = lies(datei)
expect(src).toContain(stelle)
@@ -64,7 +66,7 @@ describe('die Stellen, an denen es stand', () => {
it('das X ueber einem einzelnen Download heisst nicht "Cancel all"', () => {
const src = lies('components/layout/DownloadBadge.tsx')
expect(src).toContain("files.length === 1 ? 'Cancel' : 'Cancel all'")
- expect(src).toContain("files.length === 1 ? 'Dismiss' : 'Dismiss all'")
+ expect(src).toContain("isBundle ? 'Dismiss all' : 'Dismiss'")
expect(src).not.toContain('title="Cancel all"')
})