forked from ryanprior/gh-board
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to #129
- Loading branch information
Showing
2 changed files
with
71 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,54 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`does not display number zero 1`] = ` | ||
Array [ | ||
<button | ||
className="btn btn-xs btn-default" | ||
disabled={false} | ||
type="button" | ||
> | ||
π | ||
</button>, | ||
<button | ||
className="btn btn-xs btn-default" | ||
disabled={false} | ||
type="button" | ||
> | ||
π | ||
</button>, | ||
<button | ||
className="btn btn-xs btn-default" | ||
disabled={false} | ||
type="button" | ||
> | ||
π | ||
</button>, | ||
<button | ||
className="btn btn-xs btn-default" | ||
disabled={false} | ||
type="button" | ||
> | ||
π | ||
</button>, | ||
<button | ||
className="btn btn-xs btn-default" | ||
disabled={false} | ||
type="button" | ||
> | ||
π | ||
</button>, | ||
<button | ||
className="btn btn-xs btn-default" | ||
disabled={false} | ||
type="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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import renderer from 'react-test-renderer'; | ||
import Reactions from '../../../src/components/reactions'; | ||
|
||
it('does not display number zero', () => { | ||
const stat = { | ||
THUMBS_UP: 0, | ||
THUMBS_DOWN: 0, | ||
LAUGH: 0, | ||
HOORAY: 0, | ||
CONFUSED: 0, | ||
HEART: 0, | ||
}; | ||
const rendered = renderer.create( | ||
<Reactions stat={stat} /> | ||
); | ||
expect(rendered.toJSON()).toMatchSnapshot(); | ||
}); |