Guest User

Untitled

a guest
Dec 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import React from 'react'
  2. import renderer from 'react-test-renderer'
  3. import PeopleList from './PeopleList'
  4. import lstPeoples from '../DataSource.json'
  5.  
  6. describe('It Should be testing People List Component', () => {
  7. // Test the list component with by DataSource.json file
  8. it('Should create the table list of People in Component', () => {
  9. const tree = renderer.create(<PeopleList lstPeoples={lstPeoples} />).toJSON();
  10. expect(tree).toMatchSnapshot()
  11. });
  12. });
Add Comment
Please, Sign In to add comment