[dashboard] adding an option to duplicate slices when "Saving AS" (#3391)

* [dashboard] adding an option to duplicate slices when "Saving AS"

* Fix tests
This commit is contained in:
Maxime Beauchemin
2017-08-30 14:09:29 -07:00
committed by GitHub
parent 3b4cd812ae
commit e53f3032bb
10 changed files with 135 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ import { shallow } from 'enzyme';
import CheckboxControl from '../../../../javascripts/explore/components/controls/CheckboxControl';
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
import Checkbox from '../../../../javascripts/components/Checkbox';
const defaultProps = {
name: 'show_legend',
@@ -27,6 +28,6 @@ describe('CheckboxControl', () => {
expect(controlHeader).to.have.lengthOf(1);
const headerWrapper = controlHeader.shallow();
expect(headerWrapper.find('i.fa-check')).to.have.length(1);
expect(headerWrapper.find(Checkbox)).to.have.length(1);
});
});