Skip to content

Commit

Permalink
✅ RepoLink
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreMiras committed Dec 8, 2020
1 parent d3a8b5b commit 8a7e01e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/RepoLink.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import renderer from 'react-test-renderer';
import RepoLink from './RepoLink';

test('renders', () => {
const tree = renderer.create(
<RepoLink nameWithOwner="django/Django" />,
).toJSON();
expect(tree).toMatchSnapshot();
});
9 changes: 9 additions & 0 deletions src/components/__snapshots__/RepoLink.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders 1`] = `
<a
href="https://github.com/django/Django"
>
django/Django
</a>
`;

0 comments on commit 8a7e01e

Please sign in to comment.