Skip to content

Instantly share code, notes, and snippets.

@andyrichardson
Created November 4, 2019 18:40
Show Gist options
  • Save andyrichardson/3bfb37efd1614421c832008c0441d9fd to your computer and use it in GitHub Desktop.
Save andyrichardson/3bfb37efd1614421c832008c0441d9fd to your computer and use it in GitHub Desktop.
describe('on mount', () => {
it('renders friends list', () => {
  expect(shallow(<FriendsList friends={friends} />)).toMatchSnapshot()
  });
 
  it('renders "no friends found"', () => {
  expect(shallow(<FriendsList />)).toMatchSnapshot()
  });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment