Skip to content

Instantly share code, notes, and snippets.

@brunapereira
Created June 29, 2018 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunapereira/dd8df4daa2931d46c5c50437aa984218 to your computer and use it in GitHub Desktop.
Save brunapereira/dd8df4daa2931d46c5c50437aa984218 to your computer and use it in GitHub Desktop.
it('should render Card Component', () => {
const cardGroup = shallow(<CardGroup title="Test Group" cards={cards} />);
expect(cardGroup).to.have.exactly(2).descendants(Card)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment