Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(mail): 精确校验头像回退 URL
Dashf9c29247144b
diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/mail-preview/MailPreview.test.tsx b/apps/desktop/src/renderer/features/right-sidebar/plugins/mail-preview/MailPreview.test.tsxindex 1326795add..a6b2a08699 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/mail-preview/MailPreview.test.tsx+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/mail-preview/MailPreview.test.tsx@@ -65,7 +65,8 @@ it.each(['body', 'summary'])('bounds avatar lookups across all headers and dupliexpect(screen.getByText('BCC <[email protected]>')).toBeTruthy();await act(async () => { view.container.querySelectorAll('img').forEach(image => fireEvent.error(image)); });expect(view.container.querySelectorAll('img')).toHaveLength(12);- expect([...view.container.querySelectorAll('img')].every(image => image.src.includes('icons.duckduckgo.com'))).toBe(true);+ expect([...view.container.querySelectorAll('img')].map(image => image.src))+ .toEqual(Array(12).fill('https://icons.duckduckgo.com/ip3/company.example.com.ico'));await act(async () => { view.container.querySelectorAll('img').forEach(image => fireEvent.error(image)); });expect(view.container.querySelectorAll('img')).toHaveLength(0);expect(digest).toHaveBeenCalledTimes(12);