Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(desktop): cover current Cindy Make slot syntax

DavidShen29a51bc196e0
diff --git a/apps/desktop/src/renderer/__tests__/cindyMakeInlineEntry.test.ts b/apps/desktop/src/renderer/__tests__/cindyMakeInlineEntry.test.ts
index 31e451761e..1d07107810 100644
--- a/apps/desktop/src/renderer/__tests__/cindyMakeInlineEntry.test.ts
+++ b/apps/desktop/src/renderer/__tests__/cindyMakeInlineEntry.test.ts
@@ -57,7 +57,7 @@ describe('Cindy Make composer presentation', () => {
expect(testCard).toBeGreaterThan(mask);
expect(testCard).toBeLessThan(input);
const recoveryMatch = sessionView.match(
- /(?:\)\s*:\s*|topSlot\s*=\s*)cindyMakeRecoveryId\s*&&\s*session\s*\?\s*\(/,
+ /(?:\)\s*:\s*|topSlot\s*=\s*\{?\s*)cindyMakeRecoveryId\s*&&\s*session\s*\?\s*\(/,
);
const recovery = recoveryMatch?.index ?? -1;
expect(recovery).toBeGreaterThan(mask);