refactor(userInfo): userinfo panel to styled component (#14090)

* migrate component

* fix lint

* remove collapse

* fix test
This commit is contained in:
Phillip Kelley-Dotson
2021-04-15 09:24:34 -07:00
committed by GitHub
parent 19d2e10aff
commit fbf0149d8b
2 changed files with 31 additions and 27 deletions

View File

@@ -18,7 +18,6 @@
*/
import React from 'react';
import Gravatar from 'react-gravatar';
import { Panel } from 'react-bootstrap';
import { mount } from 'enzyme';
import UserInfo from 'src/profile/components/UserInfo';
@@ -37,7 +36,7 @@ describe('UserInfo', () => {
});
it('renders a Panel', () => {
const wrapper = mount(<UserInfo {...mockedProps} />);
expect(wrapper.find(Panel)).toExist();
expect(wrapper.find('.panel')).toExist();
});
it('renders 5 icons', () => {
const wrapper = mount(<UserInfo {...mockedProps} />);