alertLink.spec.tsx 561 B

12345678910111213141516171819202122
  1. import {render} from 'sentry-test/reactTestingLibrary';
  2. import AlertLink from 'sentry/components/alertLink';
  3. import {IconMail} from 'sentry/icons';
  4. describe('AlertLink', function () {
  5. it('renders', function () {
  6. render(
  7. <AlertLink to="/settings/accounts/notifications">
  8. This is an external link button
  9. </AlertLink>
  10. );
  11. });
  12. it('renders with icon', function () {
  13. render(
  14. <AlertLink to="/settings/accounts/notifications" icon={<IconMail />}>
  15. This is an external link button
  16. </AlertLink>
  17. );
  18. });
  19. });