UNPKG

@ecreeth/rn-ui

Version:

Highly customizable and theming components for React Native

10 lines (7 loc) 260 B
import React from 'react'; import renderer from 'react-test-renderer'; import CheckBox from '../../src/components/CheckBox'; it('renders correctly', () => { const tree = renderer.create(<CheckBox checked />).toJSON(); expect(tree).toMatchSnapshot(); });