mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
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.
This commit is contained in:
@@ -48,6 +48,7 @@ describe('useSlashCommandProcessor', () => {
|
||||
let mockOpenThemeDialog: ReturnType<typeof vi.fn>;
|
||||
let mockPerformMemoryRefresh: ReturnType<typeof vi.fn>;
|
||||
let mockConfig: Config;
|
||||
let mockCorgiMode: ReturnType<typeof vi.fn>;
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user