From aa2eece0e8559be66454b757cae4bbccb59ea828 Mon Sep 17 00:00:00 2001 From: svishnev Date: Thu, 18 Jan 2018 17:52:06 +0200 Subject: react-version-downgrade Issue-ID: SDC-943 Change-Id: Ief0b0cf4f21a8c739521ecd869b48f8ad69fcb0f Signed-off-by: svishnev --- .../monitoring/SoftwareProductComponentsMonitoring.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openecomp-ui/test/softwareProduct/components/monitoring') diff --git a/openecomp-ui/test/softwareProduct/components/monitoring/SoftwareProductComponentsMonitoring.test.js b/openecomp-ui/test/softwareProduct/components/monitoring/SoftwareProductComponentsMonitoring.test.js index 5447fc0c23..2428f2a8a8 100644 --- a/openecomp-ui/test/softwareProduct/components/monitoring/SoftwareProductComponentsMonitoring.test.js +++ b/openecomp-ui/test/softwareProduct/components/monitoring/SoftwareProductComponentsMonitoring.test.js @@ -15,8 +15,8 @@ */ 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/components/monitoring/SoftwareProductComponentsMonitoring.js'; import SoftwareProductComponentsMonitoringView from 'sdc-app/onboarding/softwareProduct/components/monitoring/SoftwareProductComponentsMonitoringView.jsx'; @@ -66,7 +66,7 @@ describe('SoftwareProductComponentsMonitoring Module Tests', function () { expect(results.filenames[trap]).toEqual(undefined); expect(results.filenames[ves]).toEqual(undefined); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render(); let renderedOutput = renderer.getRenderOutput(); expect(renderedOutput).toBeTruthy(); @@ -80,7 +80,7 @@ describe('SoftwareProductComponentsMonitoring Module Tests', function () { expect(results.filenames[trap]).toEqual(monitoring[trap]); expect(results.filenames[ves]).toEqual(monitoring[ves]); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render(); let renderedOutput = renderer.getRenderOutput(); expect(renderedOutput).toBeTruthy(); -- cgit 1.2.3-korg