From b72e3dfb43acc3faf8099fa758a4283b83f32ff6 Mon Sep 17 00:00:00 2001 From: Abhi <43648792+abhipatel12@users.noreply.github.com> Date: Tue, 15 Jul 2025 21:59:16 -0400 Subject: migrate compress command (#4271) --- .../cli/src/ui/hooks/slashCommandProcessor.test.ts | 34 ---------------------- 1 file changed, 34 deletions(-) (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.test.ts') diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts index f39795c0..20c8d7fe 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts @@ -1204,38 +1204,4 @@ describe('useSlashCommandProcessor', () => { expect(commandResult).toEqual({ type: 'handled' }); }); }); - - describe('/compress command', () => { - it('should call tryCompressChat(true)', async () => { - const hook = getProcessorHook(); - mockTryCompressChat.mockResolvedValue({ - originalTokenCount: 100, - newTokenCount: 50, - }); - - await act(async () => { - hook.result.current.handleSlashCommand('/compress'); - }); - await act(async () => { - hook.rerender(); - }); - expect(hook.result.current.pendingHistoryItems).toEqual([]); - expect(mockGeminiClient.tryCompressChat).toHaveBeenCalledWith( - 'Prompt Id not set', - true, - ); - expect(mockAddItem).toHaveBeenNthCalledWith( - 2, - expect.objectContaining({ - type: MessageType.COMPRESSION, - compression: { - isPending: false, - originalTokenCount: 100, - newTokenCount: 50, - }, - }), - expect.any(Number), - ); - }); - }); }); -- cgit v1.2.3