mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
revert browser newux changes (#5714)
This commit is contained in:
@@ -31,23 +31,21 @@ describe("BucketContainer", () => {
|
||||
})
|
||||
store.dispatch = jest.fn()
|
||||
})
|
||||
|
||||
|
||||
it("should render without crashing", () => {
|
||||
shallow(<BucketContainer store={store} />)
|
||||
shallow(<BucketContainer store={store}/>)
|
||||
})
|
||||
|
||||
it("maps state and dispatch to props", () => {
|
||||
const wrapper = shallow(<BucketContainer store={store} />)
|
||||
expect(wrapper.props()).toEqual(
|
||||
expect.objectContaining({
|
||||
isActive: expect.any(Boolean),
|
||||
selectBucket: expect.any(Function)
|
||||
})
|
||||
)
|
||||
it('maps state and dispatch to props', () => {
|
||||
const wrapper = shallow(<BucketContainer store={store}/>)
|
||||
expect(wrapper.props()).toEqual(expect.objectContaining({
|
||||
isActive: expect.any(Boolean),
|
||||
selectBucket: expect.any(Function)
|
||||
}))
|
||||
})
|
||||
|
||||
it("maps selectBucket to dispatch action", () => {
|
||||
const wrapper = shallow(<BucketContainer store={store} />)
|
||||
it('maps selectBucket to dispatch action', () => {
|
||||
const wrapper = shallow(<BucketContainer store={store}/>)
|
||||
wrapper.props().selectBucket()
|
||||
expect(store.dispatch).toHaveBeenCalled()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user