projectBadge.spec.jsx 544 B

123456789101112131415
  1. import {mountWithTheme} from 'sentry-test/enzyme';
  2. import ProjectBadge from 'app/components/idBadge/projectBadge';
  3. describe('ProjectBadge', function () {
  4. it('renders with Avatar and team name', function () {
  5. const wrapper = mountWithTheme(
  6. <ProjectBadge project={TestStubs.Project()} />,
  7. TestStubs.routerContext()
  8. );
  9. expect(wrapper.find('StyledAvatar')).toHaveLength(1);
  10. expect(wrapper.find('PlatformList')).toHaveLength(1);
  11. expect(wrapper.find('BadgeDisplayName').text()).toEqual('project-slug');
  12. });
  13. });