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 --- .../test/nfvo-components/input/dualListBox/dualListbox.test.js | 6 +++--- openecomp-ui/test/nfvo-components/input/validation/input.test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'openecomp-ui/test/nfvo-components/input') diff --git a/openecomp-ui/test/nfvo-components/input/dualListBox/dualListbox.test.js b/openecomp-ui/test/nfvo-components/input/dualListBox/dualListbox.test.js index 2df15c61b1..1af7e44a46 100644 --- a/openecomp-ui/test/nfvo-components/input/dualListBox/dualListbox.test.js +++ b/openecomp-ui/test/nfvo-components/input/dualListBox/dualListbox.test.js @@ -15,9 +15,9 @@ */ import React from 'react'; -import TestUtils from 'react-dom/test-utils'; +import TestUtils from 'react-addons-test-utils'; import DualListboxView from 'nfvo-components/input/dualListbox/DualListboxView.jsx'; -import ShallowRenderer from 'react-test-renderer/shallow'; + const ITEMS = [{id: '1', name: 'aaa'}, {id: '2', name: 'bbb'}, {id: '3', name: 'ccc'}]; @@ -25,7 +25,7 @@ describe('dualListBox Module Tests', function () { it('should render basically', () => { - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render({}}/>); var renderedOutput = renderer.getRenderOutput(); expect(renderedOutput).toBeTruthy(); diff --git a/openecomp-ui/test/nfvo-components/input/validation/input.test.js b/openecomp-ui/test/nfvo-components/input/validation/input.test.js index 719e01fb97..f27e206093 100644 --- a/openecomp-ui/test/nfvo-components/input/validation/input.test.js +++ b/openecomp-ui/test/nfvo-components/input/validation/input.test.js @@ -15,7 +15,7 @@ */ import React from 'react'; -import TestUtils from 'react-dom/test-utils'; +import TestUtils from 'react-addons-test-utils'; import {scryRenderedDOMComponentsWithTestId} from 'test-utils/Util.js'; import Input from 'nfvo-components/input/validation/Input.jsx'; import Overlay from 'react-bootstrap/lib/Overlay.js'; -- cgit 1.2.3-korg