Skip to content

Commit f768787

Browse files
committed
feat: add getEnabledModes mock to return non-disabled modes
1 parent 980bac9 commit f768787

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webview-ui/src/components/chat/__tests__/ModeSelector.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ vi.mock("@roo/modes", async () => {
4343
return {
4444
...actual,
4545
getAllModes: () => mockModes,
46+
getEnabledModes: () => mockModes.filter((mode) => !mode.disabled),
4647
}
4748
})
4849

0 commit comments

Comments
 (0)