Skip to content

Instantly share code, notes, and snippets.

@matheusml
Created June 23, 2017 14:08
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 matheusml/532341e28eb603ccfed64515f830fb6d to your computer and use it in GitHub Desktop.
Save matheusml/532341e28eb603ccfed64515f830fb6d to your computer and use it in GitHub Desktop.
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();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment