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,7 +26,11 @@ describe("BucketSearch", () => {
|
||||
it("should call onChange with search text", () => {
|
||||
const onChange = jest.fn()
|
||||
const wrapper = shallow(<BucketSearch onChange={onChange} />)
|
||||
wrapper.find("input").simulate("change", { target: { value: "test" } })
|
||||
wrapper.find("input").simulate("change", {
|
||||
target: {
|
||||
value: "test",
|
||||
},
|
||||
})
|
||||
expect(onChange).toHaveBeenCalledWith("test")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user