UNPKG

react-native-tableview-simple

Version:

React Native component for TableView made with pure CSS

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