Skip to content

Commit 01c7d2f

Browse files
author
Kevin White
committed
Fix truncated test assertion in Bedrock.test.tsx that was breaking the UI
1 parent f32f146 commit 01c7d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/settings/providers/__tests__/Bedrock.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { ProviderSettings } from "@roo-code/types"
66
// Mock the vscrui Checkbox component
77
jest.mock("vscrui", () => ({
88
Checkbox: ({ children, checked, onChange }: any) => (
9-
<label data-testid={`checkbox-${children?.toString().replace(/\s+/g, "-").toLowerCase()}`}>
9+
<label data-testid={`checkbox-${children?.toString().replace(/\\s+/g, "-").toLowerCase()}`}>
1010
<input
1111
type="checkbox"
1212
checked={checked}
1313
onChange={() => onChange(!checked)} // Toggle the checked state
14-
data-testid={`checkbox-input-${children?.toString().replace(/\s+/g, "-").toLowerCase()}`}
14+
data-testid={`checkbox-input-${children?.toString().replace(/\\s+/g, "-").toLowerCase()}`}
1515
/>
1616
{children}
1717
</label>

0 commit comments

Comments
 (0)