feat(listviews): SIP-34 Bulk Select (#10298)

This commit is contained in:
ʈᵃᵢ
2020-07-16 16:07:49 -07:00
committed by GitHub
parent 2b061fc64b
commit 0eee6785a8
18 changed files with 592 additions and 288 deletions

View File

@@ -18,6 +18,7 @@
*/
import React from 'react';
import { mount } from 'enzyme';
import { supersetTheme, ThemeProvider } from '@superset-ui/style';
import CodeModal from 'src/dashboard/components/CodeModal';
@@ -29,7 +30,10 @@ describe('CodeModal', () => {
expect(React.isValidElement(<CodeModal {...mockedProps} />)).toBe(true);
});
it('renders the trigger node', () => {
const wrapper = mount(<CodeModal {...mockedProps} />);
const wrapper = mount(<CodeModal {...mockedProps} />, {
wrappingComponent: ThemeProvider,
wrappingComponentProps: { theme: supersetTheme },
});
expect(wrapper.find('.fa-edit')).toHaveLength(1);
});
});