// @flow
import React from 'react';
import { renderSnapshot } from '../../../../utils/tests';

import type { ClickableSpanProps } from './clickable-span.proptypes';
import { ClickableSpan } from './index';

const DEFAULT_PROPS: ClickableSpanProps = {
  onClick: () => {},
  children: 'Test child',
};

describe('ClickableSpan', () => {
  describe('snapshot', () => {
    it('matches the previous snapshot', () => {
      const span = renderSnapshot(<ClickableSpan {...DEFAULT_PROPS} />);
      expect(span).toMatchSnapshot();
    });
  });
});
