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(create): no literal dash characters in the new tests

purple83999ebbd499
diff --git a/src/lib/__tests__/ltx-multishot.test.ts b/src/lib/__tests__/ltx-multishot.test.ts
index fd9123dc..3d05ccf2 100644
--- a/src/lib/__tests__/ltx-multishot.test.ts
+++ b/src/lib/__tests__/ltx-multishot.test.ts
@@ -61,7 +61,7 @@ describe('Multishot: der Prompt', () => {
})
it('kein Gedankenstrich im Text, der an das Modell geht', () => {
- expect(composeShots('a', ['b'])).not.toMatch(/[—–]/)
+ expect(composeShots('a', ['b'])).not.toMatch(new RegExp('[\\u2014\\u2013]'))
})
it('zaehlt die Shots, die wirklich Text haben', () => {
diff --git a/src/lib/__tests__/transparent-image.test.ts b/src/lib/__tests__/transparent-image.test.ts
index b232edbd..9f10ea20 100644
--- a/src/lib/__tests__/transparent-image.test.ts
+++ b/src/lib/__tests__/transparent-image.test.ts
@@ -14,7 +14,7 @@ describe('Transparent background: der Prompt', () => {
})
it('kein Gedankenstrich im Satz, der an das Modell geht', () => {
- expect(transparentPrompt('x')).not.toMatch(/[—–]/)
+ expect(transparentPrompt('x')).not.toMatch(new RegExp('[\\u2014\\u2013]'))
})
})
diff --git a/src/lib/render/__tests__/improve-prompt.test.ts b/src/lib/render/__tests__/improve-prompt.test.ts
index 8e98cc65..9a9f1548 100644
--- a/src/lib/render/__tests__/improve-prompt.test.ts
+++ b/src/lib/render/__tests__/improve-prompt.test.ts
@@ -54,7 +54,7 @@ describe('Improve my prompt: was das Chatmodell gesagt bekommt', () => {
it('kein Gedankenstrich im Text, der an das Modell geht', () => {
for (const kind of ['image', 'video', 'music'] as const) {
- expect(buildImproveMessages({ kind, tags: true, modelLabel: 'M' }, 'x')[0].content).not.toMatch(/[—–]/)
+ expect(buildImproveMessages({ kind, tags: true, modelLabel: 'M' }, 'x')[0].content).not.toMatch(new RegExp('[\\u2014\\u2013]'))
}
})
})