UNPKG

@ecreeth/rn-ui

Version:

Highly customizable and theming components for React Native

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