Skip to content

Commit 1865268

Browse files
committed
fix: update PopoverContent mock to handle className prop
- Updated test mock in CheckpointSaved.spec.tsx to properly handle the className prop - This fixes the test failure caused by the PopoverContent className addition
1 parent 8ae883e commit 1865268

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webview-ui/src/components/chat/checkpoints/__tests__/CheckpointSaved.spec.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ vi.mock("@/components/ui", () => {
2020
)
2121
},
2222
PopoverTrigger: ({ children }: any) => <div data-testid="popover-trigger">{children}</div>,
23-
PopoverContent: ({ children }: any) => <div data-testid="popover-content">{children}</div>,
23+
PopoverContent: ({ children, className, ...rest }: any) => (
24+
<div data-testid="popover-content" className={className} {...rest}>
25+
{children}
26+
</div>
27+
),
2428
}
2529
})
2630

0 commit comments

Comments
 (0)