react-version-downgrade
[sdc.git] / openecomp-ui / test / flows / flowsEditorModal.test.js
index cc6525f..53506b8 100644 (file)
  */
 
 import React from 'react';
-import TestUtils from 'react-dom/test-utils';
+import TestUtils from 'react-addons-test-utils';
 import {mapStateToProps} from 'sdc-app/flows/FlowsEditorModal.js';
 import FlowsEditorModalView from 'sdc-app/flows/FlowsEditorModalView.jsx';
-import ShallowRenderer from 'react-test-renderer/shallow';
+
 import {FlowBasicFactory} from 'test-utils/factories/flows/FlowsFactories.js';
 
 describe('Flows Editor Modal Mapper and View Classes: ', function () {
@@ -54,7 +54,7 @@ describe('Flows Editor Modal Mapper and View Classes: ', function () {
        });
 
        it('basic modal view component run with empty artifact', () => {
-               const renderer = new ShallowRenderer();
+               var renderer = TestUtils.createRenderer();
                renderer.render(
                        <FlowsEditorModalView
                                onCancel={()=>{}}