UNPKG

react-native-tableview-simple

Version:

React Native component for TableView made with pure CSS

24 lines 766 B
/* eslint-env node, jest */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Cell from '../Cell'; it('renders basic', () => { const tree = renderer .create(<Cell cellStyle="Basic" title="Basic"/>) .toJSON(); expect(tree).toMatchSnapshot(); }); it('renders with testID', () => { const tree = renderer .create(<Cell cellStyle="Basic" title="Basic" testID="testID"/>) .toJSON(); expect(tree).toMatchSnapshot(); }); it('renders with accessory', () => { const tree = renderer .create(<Cell cellStyle="Basic" title="Basic" accessory="DisclosureIndicator"/>) .toJSON(); expect(tree).toMatchSnapshot(); }); //# sourceMappingURL=Cell-Basic.test.js.map