Skip to content

Commit e020ec9

Browse files
committed
fix: update CopyButton test to match new copy function signature
1 parent a2daa15 commit e020ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/history/__tests__/CopyButton.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ describe("CopyButton", () => {
2828
const copyButton = screen.getByRole("button")
2929
fireEvent.click(copyButton)
3030

31-
expect(mockCopy).toHaveBeenCalledWith("Test task content")
31+
expect(mockCopy).toHaveBeenCalledWith({ text: "Test task content", images: [] })
3232
})
3333
})

0 commit comments

Comments
 (0)