Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import renderer from 'react-test-renderer'
- import PeopleList from './PeopleList'
- import lstPeoples from '../DataSource.json'
- describe('It Should be testing People List Component', () => {
- // Test the list component with by DataSource.json file
- it('Should create the table list of People in Component', () => {
- const tree = renderer.create(<PeopleList lstPeoples={lstPeoples} />).toJSON();
- expect(tree).toMatchSnapshot()
- });
- });
Add Comment
Please, Sign In to add comment