Created
April 9, 2019 06:14
-
-
Save tsh-code/e3fde56eb21a7ee18c9ea1815f59c141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { render } from 'enzyme'; | |
import { UsersList } from './users-list.component'; | |
const data = [ | |
{ | |
id: '5c76f0b7bb5c210da0f8554a', | |
firstName: 'Florine', | |
lastName: 'Russell', | |
email: 'florine.russell$email..org', | |
}, | |
]; | |
describe('Users list component', () => { | |
it('renders list with one row', () => { | |
const wrapper = render(<UsersList users={data} />); | |
expect(wrapper).toMatchSnapshot(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment