alertLink.spec.tsx 673 B

123456789101112131415161718192021222324
  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. const {container} = render(
  7. <AlertLink to="/settings/accounts/notifications">
  8. This is an external link button
  9. </AlertLink>
  10. );
  11. expect(container).toSnapshot();
  12. });
  13. it('renders with icon', function () {
  14. const {container} = render(
  15. <AlertLink to="/settings/accounts/notifications" icon={<IconMail />}>
  16. This is an external link button
  17. </AlertLink>
  18. );
  19. expect(container).toSnapshot();
  20. });
  21. });