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): EmptyState 测试补 onAddBackgroundTasksTab 必填 prop

Kafeifei2aaed75bb7cb
diff --git a/apps/desktop/src/renderer/features/right-sidebar/__tests__/EmptyState.test.tsx b/apps/desktop/src/renderer/features/right-sidebar/__tests__/EmptyState.test.tsx
index 76c0a9c776..6ee8e55bf0 100644
--- a/apps/desktop/src/renderer/features/right-sidebar/__tests__/EmptyState.test.tsx
+++ b/apps/desktop/src/renderer/features/right-sidebar/__tests__/EmptyState.test.tsx
@@ -30,6 +30,7 @@ describe('EmptyState add-more hint', () => {
<EmptyState
onAddFileTab={vi.fn()}
onAddReviewTab={vi.fn()}
+ onAddBackgroundTasksTab={vi.fn()}
onAddBrowserTab={vi.fn()}
onAddTerminalTab={vi.fn()}
/>,
@@ -51,6 +52,7 @@ describe('EmptyState 插件页签行(1 个直显 / ≥2 折叠)', () => {
<EmptyState
onAddFileTab={vi.fn()}
onAddReviewTab={vi.fn()}
+ onAddBackgroundTasksTab={vi.fn()}
onAddBrowserTab={vi.fn()}
onAddTerminalTab={vi.fn()}
ghostTabMetas={[ghostMeta('art', '画廊')]}
@@ -70,6 +72,7 @@ describe('EmptyState 插件页签行(1 个直显 / ≥2 折叠)', () => {
<EmptyState
onAddFileTab={vi.fn()}
onAddReviewTab={vi.fn()}
+ onAddBackgroundTasksTab={vi.fn()}
onAddBrowserTab={vi.fn()}
onAddTerminalTab={vi.fn()}
ghostTabMetas={[ghostMeta('art', '画廊'), ghostMeta('memo', '备忘')]}
@@ -96,6 +99,7 @@ describe('EmptyState 插件页签行(1 个直显 / ≥2 折叠)', () => {
<EmptyState
onAddFileTab={vi.fn()}
onAddReviewTab={vi.fn()}
+ onAddBackgroundTasksTab={vi.fn()}
onAddBrowserTab={vi.fn()}
onAddTerminalTab={vi.fn()}
/>,