diff options
author | svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com> | 2018-01-18 17:52:06 +0200 |
---|---|---|
committer | Vitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com> | 2018-01-21 11:11:06 +0000 |
commit | aa2eece0e8559be66454b757cae4bbccb59ea828 (patch) | |
tree | 98ee345e434b11f433688ed104bb62e432dad623 /openecomp-ui/test/versionsPage | |
parent | 30e728d280b77193500a7f0941db336ee60b80a6 (diff) |
react-version-downgrade
Issue-ID: SDC-943
Change-Id: Ief0b0cf4f21a8c739521ecd869b48f8ad69fcb0f
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/test/versionsPage')
-rw-r--r-- | openecomp-ui/test/versionsPage/VersionsPage.test.js | 4 | ||||
-rw-r--r-- | openecomp-ui/test/versionsPage/creation/VersionsPageCreation.test.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-ui/test/versionsPage/VersionsPage.test.js b/openecomp-ui/test/versionsPage/VersionsPage.test.js index e066b37dfc..b7e40714f1 100644 --- a/openecomp-ui/test/versionsPage/VersionsPage.test.js +++ b/openecomp-ui/test/versionsPage/VersionsPage.test.js @@ -15,7 +15,7 @@ */ import React from 'react'; -import ShallowRenderer from 'react-test-renderer/shallow'; +import TestUtils from 'react-addons-test-utils'; import deepFreeze from 'deep-freeze'; import mockRest from 'test-utils/MockRest.js'; import Configuration from 'sdc-app/config/Configuration.js'; @@ -72,7 +72,7 @@ describe('Versions Page Module Tests', () => { const additionalProps = VersionsPageAdditionalPropsFactory.build(); const props = Object.assign({}, mapStateToProps(state), mapActionsToProps(dispatch, additionalProps)); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render(<VersionsPageView {...props} />); const renderedOutput = renderer.getRenderOutput(); diff --git a/openecomp-ui/test/versionsPage/creation/VersionsPageCreation.test.js b/openecomp-ui/test/versionsPage/creation/VersionsPageCreation.test.js index b6c7b0919a..78e8124f74 100644 --- a/openecomp-ui/test/versionsPage/creation/VersionsPageCreation.test.js +++ b/openecomp-ui/test/versionsPage/creation/VersionsPageCreation.test.js @@ -15,7 +15,7 @@ */ import React from 'react'; -import ShallowRenderer from 'react-test-renderer/shallow'; +import TestUtils from 'react-addons-test-utils'; import {mapStateToProps, mapActionsToProps} from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreation.js'; import {VERSION_CREATION_FORM_NAME} from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreationConstants.js'; import VersionsPageCreationActionHelper from 'sdc-app/onboarding/versionsPage/creation/VersionsPageCreationActionHelper.js'; @@ -92,7 +92,7 @@ describe('Versions Page Creation Module Tests', function() { }; const props = Object.assign({}, mapStateToProps(state), mapActionsToProps(dispatch, additionalProps), additionalProps); - const renderer = new ShallowRenderer(); + var renderer = TestUtils.createRenderer(); renderer.render(<VersionsPageCreationView {...props} />); const renderedOutput = renderer.getRenderOutput(); |