diff options
Diffstat (limited to 'packages/cli/src/ui/commands/mcpCommand.test.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/mcpCommand.test.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/cli/src/ui/commands/mcpCommand.test.ts b/packages/cli/src/ui/commands/mcpCommand.test.ts index 6e48c2f9..09b97bb0 100644 --- a/packages/cli/src/ui/commands/mcpCommand.test.ts +++ b/packages/cli/src/ui/commands/mcpCommand.test.ts @@ -972,6 +972,7 @@ describe('mcpCommand', () => { it('should refresh the list of tools and display the status', async () => { const mockToolRegistry = { discoverMcpTools: vi.fn(), + restartMcpServers: vi.fn(), getAllTools: vi.fn().mockReturnValue([]), }; const mockGeminiClient = { @@ -1004,11 +1005,11 @@ describe('mcpCommand', () => { expect(context.ui.addItem).toHaveBeenCalledWith( { type: 'info', - text: 'Refreshing MCP servers and tools...', + text: 'Restarting MCP servers...', }, expect.any(Number), ); - expect(mockToolRegistry.discoverMcpTools).toHaveBeenCalled(); + expect(mockToolRegistry.restartMcpServers).toHaveBeenCalled(); expect(mockGeminiClient.setTools).toHaveBeenCalled(); expect(context.ui.reloadCommands).toHaveBeenCalledTimes(1); |
