import { create } from 'react-test-renderer'; import Box from './Box'; import Checkbox from './Checkbox'; import Image from './Image'; test('Checkbox', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox without label', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox checked', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox indeterminate', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox small', () => { const tree = create( {}} size="sm" />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox disabled', () => { const tree = create( {}} size="sm" />, ).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox disabled & checked', () => { const tree = create( {}} size="sm" />, ).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox with error', () => { const tree = create( {}} size="sm" />, ).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox with helperText', () => { const tree = create( {}} size="sm" />, ).toJSON(); expect(tree).toMatchSnapshot(); }); test('Checkbox with an image', () => { const tree = create( } label="Name" onChange={() => {}} size="sm" />, ).toJSON(); expect(tree).toMatchSnapshot(); });