diff options
| author | Harold Mciver <[email protected]> | 2025-07-16 11:56:05 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-16 15:56:05 +0000 |
| commit | ddcac4201d13bfa948c900f10f8c6cd227099c7b (patch) | |
| tree | d76faf860c45e5685cca281713407c210a7d0ec1 /packages/cli/src/services/CommandService.test.ts | |
| parent | f4cd0055fd7fcb86bc7dddfd72aa8c6ed78a923e (diff) | |
update `/docs` to new slash command arch (#4133)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/cli/src/services/CommandService.test.ts')
| -rw-r--r-- | packages/cli/src/services/CommandService.test.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/cli/src/services/CommandService.test.ts b/packages/cli/src/services/CommandService.test.ts index 3bc618a2..5e5e25ae 100644 --- a/packages/cli/src/services/CommandService.test.ts +++ b/packages/cli/src/services/CommandService.test.ts @@ -10,6 +10,7 @@ import { type SlashCommand } from '../ui/commands/types.js'; import { memoryCommand } from '../ui/commands/memoryCommand.js'; import { helpCommand } from '../ui/commands/helpCommand.js'; import { clearCommand } from '../ui/commands/clearCommand.js'; +import { docsCommand } from '../ui/commands/docsCommand.js'; import { chatCommand } from '../ui/commands/chatCommand.js'; import { authCommand } from '../ui/commands/authCommand.js'; import { themeCommand } from '../ui/commands/themeCommand.js'; @@ -30,6 +31,9 @@ vi.mock('../ui/commands/helpCommand.js', () => ({ vi.mock('../ui/commands/clearCommand.js', () => ({ clearCommand: { name: 'clear', description: 'Mock Clear' }, })); +vi.mock('../ui/commands/docsCommand.js', () => ({ + docsCommand: { name: 'docs', description: 'Mock Docs' }, +})); vi.mock('../ui/commands/authCommand.js', () => ({ authCommand: { name: 'auth', description: 'Mock Auth' }, })); @@ -56,7 +60,7 @@ vi.mock('../ui/commands/mcpCommand.js', () => ({ })); describe('CommandService', () => { - const subCommandLen = 12; + const subCommandLen = 13; describe('when using default production loader', () => { let commandService: CommandService; @@ -88,6 +92,7 @@ describe('CommandService', () => { expect(commandNames).toContain('memory'); expect(commandNames).toContain('help'); expect(commandNames).toContain('clear'); + expect(commandNames).toContain('docs'); expect(commandNames).toContain('chat'); expect(commandNames).toContain('theme'); expect(commandNames).toContain('stats'); @@ -127,6 +132,7 @@ describe('CommandService', () => { chatCommand, clearCommand, compressCommand, + docsCommand, extensionsCommand, helpCommand, mcpCommand, |
