Created
September 9, 2018 19:15
-
-
Save michelalbers/7e865918e102e5c9c33e5db692e56cc2 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 * as React from 'react'; | |
import * as renderer from 'react-test-renderer'; | |
import MyComponent from '../MyComponent'; | |
describe('<MyComponent />', () => { | |
it('should render without props', () => { | |
const json = renderer.create(<MyComponent />).toJSON(); | |
expect(json).toMatchSnapshot(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment