mirror of
https://github.com/pgsty/minio.git
synced 2026-08-02 16:45:57 +03:00
committed by
Harshavardhana
parent
44f8f7059c
commit
566ac78b8b
@@ -23,5 +23,10 @@ describe("SideBar", () => {
|
||||
shallow(<SideBar />)
|
||||
})
|
||||
|
||||
// ClickOutHandler test to be added when corresponding function is added
|
||||
it("should call clickOutside when the user clicks outside the sidebar", () => {
|
||||
const clickOutside = jest.fn()
|
||||
const wrapper = shallow(<SideBar clickOutside={clickOutside} />)
|
||||
wrapper.simulate("clickOut", { preventDefault: jest.fn() })
|
||||
expect(clickOutside).toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user