import React from 'react';
import { render } from '~/testUtils/helpers';
import { Icon } from '..';
import { icons } from '~/index';

describe('<Icon />', () => {
  it('matches a snapshot', () => {
    const { container } = render(
      <Icon
        Asset={icons.SvgPlus}
        rotate="180deg"
        color={'#000111'}
        width={20}
        height={20}
        mr="s"
      />
    );

    expect(container.firstChild).toMatchSnapshot();
  });
});
