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

import { CheckIcon } from './index';

describe('CheckIcon', () => {
  describe('snapshot', () => {
    describe('inverted', () => {
      it('matches the previous snapshot', () => {
        const checkIcon = renderSnapshot(<CheckIcon inverted />);
        expect(checkIcon).toMatchSnapshot();
      });
    });

    describe('regular', () => {
      it('matches the previous snapshot', () => {
        const checkIcon = renderSnapshot(<CheckIcon />);
        expect(checkIcon).toMatchSnapshot();
      });
    });
  });
});
