diff options
author | sebdet <sebastien.determe@intl.att.com> | 2019-11-15 17:49:42 +0100 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2019-11-15 17:49:42 +0100 |
commit | 4dc849f66bf9c8749ca8d2ef228fceee4d358ca1 (patch) | |
tree | 1f961e1928795cfc61daea1877feedb98d671eef /ui-react/src/components/dialogs | |
parent | 67c76a46e6a96c4c41fddddb9245234063b5306e (diff) |
Fix naming convention
Fourth stage, fix naming convention in UI-react so that it's clearer
Issue-ID: CLAMP-552
Change-Id: I5d082aec575bf0d71dd08065b9d2bf1bb869d7ca
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'ui-react/src/components/dialogs')
-rw-r--r-- | ui-react/src/components/dialogs/UserInfoModal.js (renamed from ui-react/src/components/dialogs/UserInfo.js) | 2 | ||||
-rw-r--r-- | ui-react/src/components/dialogs/UserInfoModal.test.js (renamed from ui-react/src/components/dialogs/UserInfo.test.js) | 10 | ||||
-rw-r--r-- | ui-react/src/components/dialogs/__snapshots__/UserInfoModal.test.js.snap (renamed from ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap) | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/ui-react/src/components/dialogs/UserInfo.js b/ui-react/src/components/dialogs/UserInfoModal.js index 7d81b38b..1273d87c 100644 --- a/ui-react/src/components/dialogs/UserInfo.js +++ b/ui-react/src/components/dialogs/UserInfoModal.js @@ -33,7 +33,7 @@ const ModalStyled = styled(Modal)` background-color: transparent; ` -export default class UserInfo extends React.Component { +export default class UserInfoModal extends React.Component { constructor(props, context) { super(props, context); diff --git a/ui-react/src/components/dialogs/UserInfo.test.js b/ui-react/src/components/dialogs/UserInfoModal.test.js index beddde14..b5a2b272 100644 --- a/ui-react/src/components/dialogs/UserInfo.test.js +++ b/ui-react/src/components/dialogs/UserInfoModal.test.js @@ -22,9 +22,9 @@ */ import React from 'react'; import { shallow } from 'enzyme'; -import UserInfo from './UserInfo'; +import UserInfoModal from './UserInfoModal'; -describe('Verify UserInfo', () => { +describe('Verify UserInfoModal', () => { beforeEach(() => { fetch.resetMocks(); @@ -42,7 +42,7 @@ describe('Verify UserInfo', () => { }) it('Test the render method full permission', () => { - const component = shallow(<UserInfo />) + const component = shallow(<UserInfoModal />) component.setState({ userInfo: { "userName": "test", "cldsVersion": "1.0.0", @@ -57,7 +57,7 @@ describe('Verify UserInfo', () => { }); it('Test the render method no permission', () => { - const component = shallow(<UserInfo />) + const component = shallow(<UserInfoModal />) component.setState({ userInfo: {} }); @@ -65,7 +65,7 @@ describe('Verify UserInfo', () => { }); it('Test the render method read permission', () => { - const component = shallow(<UserInfo />) + const component = shallow(<UserInfoModal />) component.setState({ userInfo: { "userName": "test", "cldsVersion": "1.0.0", diff --git a/ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap b/ui-react/src/components/dialogs/__snapshots__/UserInfoModal.test.js.snap index 1ae567a2..fdb24a43 100644 --- a/ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap +++ b/ui-react/src/components/dialogs/__snapshots__/UserInfoModal.test.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Verify UserInfo Test the render method full permission 1`] = ` +exports[`Verify UserInfoModal Test the render method full permission 1`] = ` <Styled(Bootstrap(Modal)) onHide={[Function]} show={true} |