Files
superset2/superset/assets/spec/javascripts/explore/components/ChartContainer_spec.js
Alanna Scott 90e4d6469d [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
2017-05-31 10:52:02 -07:00

23 lines
696 B
JavaScript

// 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);
// });
// });