-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make snapshot tests explicit in each component
closes #196
- Loading branch information
1 parent
4a1e973
commit f5c68fd
Showing
14 changed files
with
9,424 additions
and
154 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
components/x-increment/__tests__/__snapshots__/x-increment.test.jsx.snap
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,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`x-increment snapshots renders a default Async nodejs 1`] = ` | ||
<div> | ||
<span> | ||
1 | ||
</span> | ||
<button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
Increment | ||
</button> | ||
</div> | ||
`; | ||
|
||
exports[`x-increment snapshots renders a default Increment nodejs 1`] = ` | ||
<div> | ||
<span> | ||
1 | ||
</span> | ||
<button | ||
disabled={false} | ||
onClick={[Function]} | ||
> | ||
Increment | ||
</button> | ||
</div> | ||
`; |
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
9 changes: 9 additions & 0 deletions
9
components/x-styling-demo/__tests__/__snapshots__/x-styling-demo.test.jsx.snap
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,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`x-styling-demo renders a default Styling nodejs 1`] = ` | ||
<button | ||
className="Button_button__vS7Mv" | ||
> | ||
Click me! | ||
</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,6 @@ | ||
const snapshots = require('@financial-times/x-test-utils/snapshots'); | ||
const stories = require('../stories'); | ||
|
||
describe('x-styling-demo', () => { | ||
snapshots(stories); | ||
}); |
Oops, something went wrong.