mirror of
https://github.com/apache/superset.git
synced 2026-04-09 11:25:23 +00:00
feat(listviews): SIP-34 Bulk Select (#10298)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user