Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 修复 userInfoSectionHover 测试在 Windows 下的换行符兼容
Shinku6926022f1d52
diff --git a/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts b/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.tsindex 9d75e7412f..4db379f777 100644--- a/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts+++ b/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts@@ -123,7 +123,7 @@ describe('UserInfoSection — mobile download entry', () => {expect(source).toContain("import { Flame, Shield, Smartphone, UserRound } from 'lucide-react';",);- expect(source).toMatch(/mobile-download-btn',\s*\n\s*'flex shrink-0.*\n.*isCollapsed \? 'h-8 w-8' : 'h-9 w-9'/);+ expect(source).toMatch(/mobile-download-btn',\s*\r?\n\s*'flex shrink-0[\s\S]*isCollapsed \? 'h-8 w-8' : 'h-9 w-9'/);expect(source).toContain('<Smartphone className="h-5 w-5" aria-hidden="true" />');});