Skip to content

Commit

Permalink
Uses styledMount in test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Jan 7, 2022
1 parent b2738cb commit 1e86d2e
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
* under the License.
*/
import React from 'react';
import { mount, shallow } from 'enzyme';
import { shallow } from 'enzyme';
import { styledMount as mount } from 'spec/helpers/theming';
import thunk from 'redux-thunk';
import configureStore from 'redux-mock-store';
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
import { Dropdown, Menu } from 'src/common/components';
import ExploreAdditionalActionsMenu from 'src/explore/components/ExploreAdditionalActionsMenu';

Expand Down Expand Up @@ -50,12 +50,6 @@ describe('ExploreAdditionalActionsMenu', () => {
it('renders a dropdown with 3 items', () => {
const wrapper = mount(
<ExploreAdditionalActionsMenu store={store} {...defaultProps} />,
{
wrappingComponent: ThemeProvider,
wrappingComponentProps: {
theme: supersetTheme,
},
},
);
const dropdown = wrapper.find(Dropdown);
const menu = shallow(<div>{dropdown.prop('overlay')}</div>);
Expand Down

0 comments on commit 1e86d2e

Please sign in to comment.