alertLink.spec.tsx 691 B

123456789101112131415161718192021222324
  1. import {mountWithTheme} from 'sentry-test/reactTestingLibrary';
  2. import AlertLink from 'app/components/alertLink';
  3. import {IconMail} from 'app/icons';
  4. describe('AlertLink', function () {
  5. it('renders', function () {
  6. const {container} = mountWithTheme(
  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} = mountWithTheme(
  15. <AlertLink to="/settings/accounts/notifications" icon={<IconMail />}>
  16. This is an external link button
  17. </AlertLink>
  18. );
  19. expect(container).toSnapshot();
  20. });
  21. });