mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Fix tests
This commit is contained in:
parent
616472f807
commit
530b67d2ba
2 changed files with 8 additions and 1 deletions
|
|
@ -917,7 +917,12 @@ export class ClineProvider
|
|||
// The task will continue with the current/default configuration.
|
||||
}
|
||||
} catch (error) {
|
||||
// The task will continue with the current/default configuration.
|
||||
// Log the error but continue with task restoration.
|
||||
this.log(
|
||||
`Failed to restore API configuration for mode '${historyItem.mode}': ${
|
||||
error instanceof Error ? error.message : String(error)
|
||||
}. Continuing with default configuration.`,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -889,6 +889,7 @@ describe("ClineProvider", () => {
|
|||
listConfig: vi.fn().mockResolvedValue([profile]),
|
||||
activateProfile: vi.fn().mockResolvedValue(profile),
|
||||
setModeConfig: vi.fn(),
|
||||
getProfile: vi.fn().mockResolvedValue(profile),
|
||||
} as any
|
||||
|
||||
// Switch to architect mode
|
||||
|
|
@ -1610,6 +1611,7 @@ describe("ClineProvider", () => {
|
|||
listConfig: vi.fn().mockResolvedValue([profile]),
|
||||
activateProfile: vi.fn().mockResolvedValue(profile),
|
||||
setModeConfig: vi.fn(),
|
||||
getProfile: vi.fn().mockResolvedValue(profile),
|
||||
} as any
|
||||
|
||||
// Switch to architect mode
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue