diff options
Diffstat (limited to 'openecomp-ui/test/softwareProduct/components/compute')
2 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentComputeEditor.test.js b/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentComputeEditor.test.js index f67389764e..f7ffcf98fc 100644 --- a/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentComputeEditor.test.js +++ b/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentComputeEditor.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 as computeEditorMapStateToProps} from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/computeFlavor/ComputeFlavorEditor.js'; import ComputeEditorView from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/computeFlavor/ComputeFlavorEditorView.jsx'; @@ -77,7 +77,7 @@ describe('Software Product Component Compute-Editor Mapper and View Classes.', ( onCancel: () => {} }; - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render(<ComputeEditorView {...props}/>); var renderedOutput = renderer.getRenderOutput(); expect(renderedOutput).toBeTruthy(); diff --git a/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentsComputes.test.js b/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentsComputes.test.js index f48a19af18..f3801beb40 100644 --- a/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentsComputes.test.js +++ b/openecomp-ui/test/softwareProduct/components/compute/SoftwareProductComponentsComputes.test.js @@ -16,7 +16,7 @@ import deepFreeze from 'deep-freeze'; import React from 'react'; -import ShallowRenderer from 'react-test-renderer/shallow'; +import TestUtils from 'react-addons-test-utils'; import {storeCreator} from 'sdc-app/AppStore.js'; import ComputeFlavors from 'sdc-app/onboarding/softwareProduct/components/compute/computeComponents/ComputeFlavors.js'; import {ComputeFlavorBaseData} from 'test-utils/factories/softwareProduct/SoftwareProductComponentsComputeFactory.js'; @@ -32,7 +32,7 @@ describe('Software Product Component ComputeFlavors - View Classes.', () => { const ComputeFlavorsList = ComputeFlavorBaseData.buildList(1); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render( <ComputeFlavors store={store} |