mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
committed by
GitHub
parent
91db008d72
commit
ad4ca2223e
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { mockStore } from 'spec/fixtures/mockStore';
|
||||
import ExploreActionButtons from 'src/explore/components/ExploreActionButtons';
|
||||
|
||||
describe('ExploreActionButtons', () => {
|
||||
@@ -35,8 +36,10 @@ describe('ExploreActionButtons', () => {
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it('should render 5 children/buttons', () => {
|
||||
const wrapper = shallow(<ExploreActionButtons {...defaultProps} />);
|
||||
expect(wrapper.children()).toHaveLength(5);
|
||||
it('should render 6 children/buttons', () => {
|
||||
const wrapper = shallow(
|
||||
<ExploreActionButtons {...defaultProps} store={mockStore} />,
|
||||
);
|
||||
expect(wrapper.dive().children()).toHaveLength(6);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user