mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[refactor] moving some datasource-related code to the frontend (#5769)
* [refactor] moving some datasource-related code to the frontend * fix js tests * fix tests * fix test
This commit is contained in:
committed by
GitHub
parent
eff4e6362c
commit
fe77b57581
@@ -5,10 +5,10 @@ import { OverlayTrigger } from 'react-bootstrap';
|
||||
|
||||
import FixedOrMetricControl from
|
||||
'../../../../src/explore/components/controls/FixedOrMetricControl';
|
||||
import SelectControl from
|
||||
'../../../../src/explore/components/controls/SelectControl';
|
||||
import TextControl from
|
||||
'../../../../src/explore/components/controls/TextControl';
|
||||
import MetricsControl from
|
||||
'../../../../src/explore/components/controls/MetricsControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
|
||||
const defaultProps = {
|
||||
@@ -32,6 +32,6 @@ describe('FixedOrMetricControl', () => {
|
||||
it('renders a TextControl and a SelectControl', () => {
|
||||
const popOver = shallow(inst.renderPopover());
|
||||
expect(popOver.find(TextControl)).toHaveLength(1);
|
||||
expect(popOver.find(SelectControl)).toHaveLength(1);
|
||||
expect(popOver.find(MetricsControl)).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user