*/
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();
})
it('Test the render method full permission', () => {
- const component = shallow(<UserInfo />)
+ const component = shallow(<UserInfoModal />)
component.setState({ userInfo: {
"userName": "test",
"cldsVersion": "1.0.0",
});
it('Test the render method no permission', () => {
- const component = shallow(<UserInfo />)
+ const component = shallow(<UserInfoModal />)
component.setState({ 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",