mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
14 lines
558 B
TypeScript
14 lines
558 B
TypeScript
import {OrganizationFixture} from 'sentry-fixture/organization';
|
|
|
|
import {render, screen} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import OrganizationBadge from 'sentry/components/idBadge/organizationBadge';
|
|
|
|
describe('OrganizationBadge', function () {
|
|
it('renders with Avatar and organization name', function () {
|
|
render(<OrganizationBadge organization={OrganizationFixture()} />);
|
|
expect(screen.getByTestId('badge-styled-avatar')).toBeInTheDocument();
|
|
expect(screen.getByTestId('badge-display-name')).toHaveTextContent('org-slug');
|
|
});
|
|
});
|