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

import type { PencilProps } from './pencil.proptypes';
import { Pencil } from './index';

const DEFAULT_PROPS: PencilProps = {
  colorName: 'greyscale-medium',
};

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