alertLink.spec.jsx 694 B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import {mountWithTheme} from 'sentry-test/enzyme';
  3. import AlertLink from 'app/components/alertLink';
  4. import {IconMail} from 'app/icons';
  5. describe('AlertLink', function () {
  6. it('renders', function () {
  7. const wrapper = mountWithTheme(
  8. <AlertLink to="/settings/accounts/notifications">
  9. This is an external link button
  10. </AlertLink>
  11. );
  12. expect(wrapper).toSnapshot();
  13. });
  14. it('renders with icon', function () {
  15. const wrapper = mountWithTheme(
  16. <AlertLink to="/settings/accounts/notifications" icon={<IconMail />}>
  17. This is an external link button
  18. </AlertLink>
  19. );
  20. expect(wrapper).toSnapshot();
  21. });
  22. });