alertLink.spec.jsx 627 B

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