-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: switch to snapshot tests (#3579)
- Loading branch information
1 parent
d70236d
commit 0f20078
Showing
2 changed files
with
131 additions
and
79 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
118 changes: 118 additions & 0 deletions
118
components/lib/divider/__snapshots__/Divider.spec.js.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,118 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Divider Snapshot check snapshots: dashed 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-horizontal p-divider-dashed p-divider-left" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: default 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-horizontal p-divider-solid p-divider-left" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: dotted 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-horizontal p-divider-dotted p-divider-left" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: horizontal center 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-horizontal p-divider-solid p-divider-center" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: horizontal left 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-horizontal p-divider-solid p-divider-left" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: horizontal right 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-horizontal p-divider-solid p-divider-right" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: vertical bottom 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-vertical p-divider-solid p-divider-bottom" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: vertical center 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-vertical p-divider-solid p-divider-center" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Divider Snapshot check snapshots: vertical top 1`] = ` | ||
<div> | ||
<div | ||
class="p-divider p-component p-divider-vertical p-divider-solid p-divider-top" | ||
role="separator" | ||
> | ||
<div | ||
class="p-divider-content" | ||
/> | ||
</div> | ||
</div> | ||
`; |