mirror of
https://github.com/pgsty/minio.git
synced 2026-08-02 08:35:58 +03:00
Browser: Update UI with new components and elements (#5671)
This commit is contained in:
@@ -26,11 +26,11 @@ describe("Bucket", () => {
|
||||
it("should toggleSidebar when trigger is clicked", () => {
|
||||
const toggleSidebar = jest.fn()
|
||||
const wrapper = shallow(
|
||||
<MobileHeader sidebarOpen={false} toggleSidebar={toggleSidebar} />
|
||||
<MobileHeader sidebarOpen={false} toggleSidebar={toggleSidebar} />,
|
||||
)
|
||||
wrapper
|
||||
.find("#sidebar-toggle")
|
||||
.simulate("click", { stopPropagation: jest.fn() })
|
||||
wrapper.find("#sidebar-toggle").simulate("click", {
|
||||
stopPropagation: jest.fn(),
|
||||
})
|
||||
expect(toggleSidebar).toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user