From a4e2ff9554f84290c186bc87af36fdc6ec824e16 Mon Sep 17 00:00:00 2001 From: DennisYu07 <617072224@qq.com> Date: Thu, 26 Mar 2026 19:25:48 +0800 Subject: [PATCH] remove cases --- .../src/ui/components/hooks/HooksListStep.test.tsx | 14 -------------- .../hooks/HooksManagementDialog.test.tsx | 13 ------------- 2 files changed, 27 deletions(-) diff --git a/packages/cli/src/ui/components/hooks/HooksListStep.test.tsx b/packages/cli/src/ui/components/hooks/HooksListStep.test.tsx index 5f60763bd..a328ca66a 100644 --- a/packages/cli/src/ui/components/hooks/HooksListStep.test.tsx +++ b/packages/cli/src/ui/components/hooks/HooksListStep.test.tsx @@ -113,20 +113,6 @@ describe('HooksListStep', () => { expect(output).not.toContain('(0)'); }); - it('should show total configured hooks count', () => { - const hooks: HookEventDisplayInfo[] = [ - createMockHookInfo(HookEventName.PreToolUse, 2), - createMockHookInfo(HookEventName.PostToolUse, 3), - ]; - - const { lastFrame } = render( - , - ); - - const output = lastFrame(); - expect(output).toContain('5 hooks configured'); - }); - it('should show singular form for single hook', () => { const hooks: HookEventDisplayInfo[] = [ createMockHookInfo(HookEventName.PreToolUse, 1), diff --git a/packages/cli/src/ui/components/hooks/HooksManagementDialog.test.tsx b/packages/cli/src/ui/components/hooks/HooksManagementDialog.test.tsx index 902e3844f..33c1644cf 100644 --- a/packages/cli/src/ui/components/hooks/HooksManagementDialog.test.tsx +++ b/packages/cli/src/ui/components/hooks/HooksManagementDialog.test.tsx @@ -98,19 +98,6 @@ describe('HooksManagementDialog', () => { expect(lastFrame()).toContain('Loading hooks'); }); - it('should show total configured hooks count', async () => { - const { lastFrame, unmount } = renderWithProviders( - , - ); - - await new Promise((resolve) => setTimeout(resolve, 100)); - - const output = lastFrame(); - expect(output).toContain('hooks configured'); - - unmount(); - }); - it('should display all hook events', async () => { const { lastFrame, unmount } = renderWithProviders( ,