Created
February 8, 2019 10:03
-
-
Save takethefake/79cf6c8baf6c2ec22ec4c3b832233478 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 Link from '../Link.react'; | |
import renderer from 'react-test-renderer'; | |
it('renders correctly', () => { | |
const tree = renderer | |
.create(<Link page="http://www.facebook.com">Facebook</Link>) | |
.toJSON(); | |
expect(tree).toMatchSnapshot(); | |
}); | |
// will render in a seperate file | |
exports[`renders correctly 1`] = ` | |
<a | |
className="normal" | |
href="http://www.facebook.com" | |
onMouseEnter={[Function]} | |
onMouseLeave={[Function]} | |
> | |
</a> | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment