From 13a6a9a690900a50287d344592bf02bdfb2586f1 Mon Sep 17 00:00:00 2001 From: DeWitt Clinton Date: Sat, 17 May 2025 21:57:27 -0700 Subject: Introduce a small easter egg. Woof. (#412) Also changes auto-completion and /help to skip over slash commands that don't contain a description to avoid spoiling the surprise. --- packages/cli/src/ui/hooks/slashCommandProcessor.test.ts | 3 +++ 1 file changed, 3 insertions(+) (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 4055dfd3..f7f1bb5e 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.test.ts @@ -48,6 +48,7 @@ describe('useSlashCommandProcessor', () => { let mockOpenThemeDialog: ReturnType; let mockPerformMemoryRefresh: ReturnType; let mockConfig: Config; + let mockCorgiMode: ReturnType; beforeEach(() => { mockAddItem = vi.fn(); @@ -58,6 +59,7 @@ describe('useSlashCommandProcessor', () => { mockOpenThemeDialog = vi.fn(); mockPerformMemoryRefresh = vi.fn().mockResolvedValue(undefined); mockConfig = { getDebugMode: vi.fn(() => false) } as unknown as Config; + mockCorgiMode = vi.fn(); // Clear mocks for fsPromises if they were used directly or indirectly vi.mocked(fsPromises.readFile).mockClear(); @@ -89,6 +91,7 @@ describe('useSlashCommandProcessor', () => { mockOnDebugMessage, mockOpenThemeDialog, mockPerformMemoryRefresh, + mockCorgiMode, ), ); return result.current; -- cgit v1.2.3