UNPKG

@ecreeth/rn-ui

Version:

Highly customizable and theming components for React Native

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