Refactor out controlUtils.js module + unit tests (#7350)

* [WiP]refactor out a controlUtils.js file

* unit tests

* add missing license

* Addressing comments
This commit is contained in:
Maxime Beauchemin
2019-04-30 11:45:06 -07:00
committed by GitHub
parent 8703244198
commit 46579b1bd6
9 changed files with 392 additions and 113 deletions

View File

@@ -18,7 +18,8 @@
*/
import React from 'react';
import { shallow } from 'enzyme';
import { getFormDataFromControls, defaultControls } from 'src/explore/store';
import { defaultControls } from 'src/explore/store';
import { getFormDataFromControls } from 'src/explore/controlUtils';
import { ControlPanelsContainer } from 'src/explore/components/ControlPanelsContainer';
import ControlPanelSection from 'src/explore/components/ControlPanelSection';
import * as featureFlags from 'src/featureFlags';