import React from 'react';
import renderer from 'react-test-renderer';
import { CheckBox } from './CheckBox';

describe('<CheckBox /> ', () => {
  test('Render Checkbox correctly', () => {
    const tree = renderer.create(<CheckBox />).toJSON();
    expect(tree).toMatchSnapshot();
  });

  test('Testing props', () => {
    const tree = renderer.create(<CheckBox label="Label" disabled checked />);
    expect(tree).toMatchSnapshot();
  });
});
