text: import React from 'react';
  import theme from 'theme';
  import { shallowWithTheme } from 'testUtils';
  import { axe } from 'jest-axe';
  
  import ExternalLink from './';
  
  describe('<ExternalLink />', () => {
    let wrapper;
  
    beforeEach(() => {
      wrapper = shallowWithTheme(<ExternalLink>Hello world</ExternalLink>, theme);
    });
  
    it('renders correctly', () => {
      expect(wrapper).toMatchSnapshot();
    });
  
    it('has no accessibility errors', async () => {
      expect(await axe(wrapper.html())).toHaveNoViolations();
    });
  });
  