UNPKG

@buffetjs/styles

Version:

Buffetjs Styles - The styling solution of Buffetjs

20 lines (14 loc) 437 B
import React from 'react'; import { shallow } from 'enzyme'; import { render } from '@testing-library/react'; import Checkbox from '../index'; const renderComponent = () => shallow(<Checkbox />); describe('<Checkbox />', () => { it('should not crash', () => { renderComponent(); }); it('should match snapshot', () => { const { asFragment } = render(<Checkbox />); expect(asFragment()).toMatchSnapshot(); }); });