import { create } from 'react-test-renderer'; import Switch from './Switch'; test('Switch', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Switch disabled', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Switch switched', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); }); test('Switch switched & disabled', () => { const tree = create( {}} />).toJSON(); expect(tree).toMatchSnapshot(); });