mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
refactor: Bootstrap to AntD - Form - iteration 2 (#14379)
This commit is contained in:
committed by
GitHub
parent
fa510df624
commit
331310db9b
@@ -16,12 +16,10 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
/* eslint-disable no-unused-expressions */
|
||||
import React from 'react';
|
||||
import { FormControl } from 'react-bootstrap';
|
||||
import sinon from 'sinon';
|
||||
import { mount } from 'enzyme';
|
||||
|
||||
import { styledMount as mount } from 'spec/helpers/theming';
|
||||
import BoundsControl from 'src/explore/components/controls/BoundsControl';
|
||||
|
||||
const defaultProps = {
|
||||
|
||||
@@ -24,7 +24,6 @@ import { Provider } from 'react-redux';
|
||||
|
||||
import { shallow } from 'enzyme';
|
||||
import { styledMount as mount } from 'spec/helpers/theming';
|
||||
import { FormControl } from 'react-bootstrap';
|
||||
import { Radio } from 'src/components/Radio';
|
||||
import Button from 'src/components/Button';
|
||||
import sinon from 'sinon';
|
||||
@@ -91,7 +90,6 @@ describe('SaveModal', () => {
|
||||
it('renders a Modal with the right set of components', () => {
|
||||
const wrapper = getWrapper();
|
||||
expect(wrapper.find(StyledModal)).toExist();
|
||||
expect(wrapper.find(FormControl)).toExist();
|
||||
expect(wrapper.find(Radio)).toHaveLength(2);
|
||||
|
||||
const footerWrapper = shallow(wrapper.find(StyledModal).props().footer);
|
||||
|
||||
Reference in New Issue
Block a user