-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Richard Scarrott
committed
Oct 11, 2016
1 parent
a41e7c1
commit 5eed20a
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-env jasmine */ | ||
|
||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import Button from 'components/lib/button/Button'; | ||
|
||
describe('components/lib/button/Button', () => { | ||
|
||
it('renders correctly', () => { | ||
const component = renderer.create( | ||
<Button onClick={() => {}}> | ||
Hello Button. | ||
</Button> | ||
); | ||
const tree = component.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
|
||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
exports[`components/lib/button/Button renders correctly 1`] = ` | ||
<button | ||
className="root" | ||
onClick={[Function]}> | ||
Hello Button. | ||
</button> | ||
`; |
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