1234567891011121314 |
- import React from 'react';
- import {mount} from 'enzyme';
- import OrganizationBadge from 'app/components/idBadge/organizationBadge';
- describe('OrganizationBadge', function() {
- it('renders with Avatar and organization name', function() {
- let wrapper = mount(
- <OrganizationBadge organization={TestStubs.Organization()} />,
- TestStubs.routerContext()
- );
- expect(wrapper.find('StyledAvatar')).toHaveLength(1);
- expect(wrapper.find('BadgeDisplayName').text()).toEqual('org-slug');
- });
- });
|