Skip to content

Commit 51cd953

Browse files
committed
Fix test
1 parent 3f45f99 commit 51cd953

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webview-ui/src/components/settings/__tests__/ModelPicker.deprecated.spec.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import type { ModelInfo } from "@roo-code/types"
1212
vi.mock("@src/i18n/TranslationContext", () => ({
1313
useAppTranslation: () => ({
1414
t: (key: string, options?: any) => {
15+
// Handle specific translation keys
16+
if (key === "settings:validation.modelDeprecated") {
17+
return "This model is no longer available. Please select a different model."
18+
}
1519
if (options) return `${key} ${JSON.stringify(options)}`
1620
return key
1721
},

0 commit comments

Comments
 (0)