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={TestStubs.Organization()} />);
    expect(screen.getByTestId('badge-styled-avatar')).toBeInTheDocument();
    expect(screen.getByTestId('badge-display-name')).toHaveTextContent('org-slug');
  });
});