diff options
| author | Abhi <[email protected]> | 2025-07-15 21:59:16 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-16 01:59:16 +0000 |
| commit | b72e3dfb43acc3faf8099fa758a4283b83f32ff6 (patch) | |
| tree | 5759c8c1b2a6aaf87aa170798d873f5d276f6e59 /packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | |
| parent | e88b9362dcd1092de01ce8efa413b5acd89ee620 (diff) | |
migrate compress command (#4271)
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.test.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | 34 |
1 files changed, 0 insertions, 34 deletions
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), - ); - }); - }); }); |
