Skip to content

Commit 28b2f56

Browse files
committed
fix: add missing Input mock to ApiOptions test suite
1 parent 1c1a42c commit 28b2f56

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

webview-ui/src/components/settings/__tests__/ApiOptions.spec.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,19 @@ vi.mock("@/components/ui", () => ({
114114
CollapsibleContent: ({ children, className }: any) => (
115115
<div className={`collapsible-content-mock ${className || ""}`}>{children}</div>
116116
),
117+
// Add Input component for MaxTokensControl
118+
Input: ({ id, type, value, onChange, min, max, className, ...props }: any) => (
119+
<input
120+
id={id}
121+
type={type}
122+
value={value}
123+
onChange={onChange}
124+
min={min}
125+
max={max}
126+
className={className}
127+
{...props}
128+
/>
129+
),
117130
}))
118131

119132
vi.mock("../TemperatureControl", () => ({

0 commit comments

Comments
 (0)