mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
fix: add getMcpHub mock to Subtask Rate Limiting tests
The addition of defaultToolProtocol: "native" to model definitions now triggers the buildNativeToolsArray code path which requires provider.getMcpHub() to be defined. Added the missing mock method.
This commit is contained in:
parent
900039a0a3
commit
30363b0b23
1 changed files with 1 additions and 0 deletions
|
|
@ -981,6 +981,7 @@ describe("Cline", () => {
|
|||
getState: vi.fn().mockResolvedValue({
|
||||
apiConfiguration: mockApiConfig,
|
||||
}),
|
||||
getMcpHub: vi.fn().mockReturnValue(undefined),
|
||||
say: vi.fn(),
|
||||
postStateToWebview: vi.fn().mockResolvedValue(undefined),
|
||||
postMessageToWebview: vi.fn().mockResolvedValue(undefined),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue