mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
Browser: Update UI with new components and elements (#5671)
This commit is contained in:
@@ -26,9 +26,11 @@ describe("Bucket", () => {
|
||||
it("should call selectBucket when clicked", () => {
|
||||
const selectBucket = jest.fn()
|
||||
const wrapper = shallow(
|
||||
<Bucket bucket={"test"} selectBucket={selectBucket} />
|
||||
<Bucket bucket={"test"} selectBucket={selectBucket} />,
|
||||
)
|
||||
wrapper.find("li").simulate("click", { preventDefault: jest.fn() })
|
||||
wrapper.find("li").simulate("click", {
|
||||
preventDefault: jest.fn(),
|
||||
})
|
||||
expect(selectBucket).toHaveBeenCalledWith("test")
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user