Created
October 2, 2019 20:55
-
-
Save felipecesr/0bda9406edf1c9156604312c7347cc5e 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 ReactDOM from 'react-dom'; | |
describe('Card', () => { | |
it('renders the user name', () => { | |
const user = { name: 'John Wick' }; | |
const component = <Card user={user} />; | |
const container = document.createElement('div'); | |
ReactDOM.render(component, container); | |
expect(container.textContent).toMatch('John Wick'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment