diff options
Diffstat (limited to 'openecomp-ui/test/softwareProduct/deployment')
-rw-r--r-- | openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentEditor.test.js | 6 | ||||
-rw-r--r-- | openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentView.test.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentEditor.test.js b/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentEditor.test.js index 79b041cc2d..3d0f7fca2d 100644 --- a/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentEditor.test.js +++ b/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentEditor.test.js @@ -14,8 +14,8 @@ * limitations under the License. */ import React from 'react'; -import ShallowRenderer from 'react-test-renderer/shallow'; -import TestUtils from 'react-dom/test-utils'; + +import TestUtils from 'react-addons-test-utils'; import { mapStateToProps } from 'sdc-app/onboarding/softwareProduct/deployment/editor/SoftwareProductDeploymentEditor.js'; import SoftwareProductDeploymentEditorView from 'sdc-app/onboarding/softwareProduct/deployment/editor/SoftwareProductDeploymentEditorView.jsx'; import { VSPComponentsFactory } from 'test-utils/factories/softwareProduct/SoftwareProductComponentsFactories.js'; @@ -67,7 +67,7 @@ describe('Software Product Deployment Editor Module Tests', function () { it('jsx view test', () => { const componentsList = VSPComponentsFactory.buildList(1); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render( <SoftwareProductDeploymentEditorView isReadOnlyMode={true} diff --git a/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentView.test.js b/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentView.test.js index 4b7f8464ba..dff52edf5d 100644 --- a/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentView.test.js +++ b/openecomp-ui/test/softwareProduct/deployment/SoftwareProductDeploymentView.test.js @@ -14,7 +14,7 @@ * limitations under the License. */ import React from 'react'; -import ShallowRenderer from 'react-test-renderer/shallow'; +import TestUtils from 'react-addons-test-utils'; import {mapStateToProps} from 'sdc-app/onboarding/softwareProduct/deployment/SoftwareProductDeployment.js'; import SoftwareProductDeploymentView from 'sdc-app/onboarding/softwareProduct/deployment/SoftwareProductDeploymentView.jsx'; @@ -60,7 +60,7 @@ describe('SoftwareProductDeployment Mapper and View Classes', () => { const deploymentFlavors = VSPDeploymentStoreFactory.buildList(2); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render( <SoftwareProductDeploymentView deploymentFlavors={deploymentFlavors} |