mirror of
https://github.com/apache/superset.git
synced 2026-04-13 05:07:53 +00:00
[js-testing] more tests for SelectControl (#2877)
* rename spec folder * remove special handling for viz_type control since it now uses VizTypeControl * add test for getOptions * linting * add test for cwp * linting
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// this test must be commented out because ChartContainer is now importing files
|
||||
// from visualizations/*.js which are also importing css files which breaks in the testing env
|
||||
|
||||
// import React from 'react';
|
||||
// import { expect } from 'chai';
|
||||
// import { describe, it } from 'mocha';
|
||||
|
||||
// import ChartContainer from '../../../../javascripts/explore/components/ChartContainer';
|
||||
|
||||
// describe('ChartContainer', () => {
|
||||
// const mockProps = {
|
||||
// sliceName: 'Trend Line',
|
||||
// vizType: 'line',
|
||||
// height: '500px',
|
||||
// };
|
||||
|
||||
// it('renders when vizType is line', () => {
|
||||
// expect(
|
||||
// React.isValidElement(<ChartContainer {...mockProps} />)
|
||||
// ).to.equal(true);
|
||||
// });
|
||||
// });
|
||||
Reference in New Issue
Block a user