-
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.
Badge and Chip snapshot tests (#3592)
- Loading branch information
Showing
4 changed files
with
167 additions
and
122 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
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,83 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Badge check snapshots: default 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: severity danger 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-danger" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: severity info 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-info" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: severity invalid 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-invalid" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: severity success 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-success" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: severity warning 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-warning" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: size invalid 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: size large 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-lg" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: size xlarge 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component p-badge-dot p-badge-xl" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Badge check snapshots: value 1`] = ` | ||
<div> | ||
<span | ||
class="p-badge p-component" | ||
> | ||
22 | ||
</span> | ||
</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
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,61 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Chip check snapshots: default 1`] = ` | ||
<div> | ||
<div | ||
class="p-chip p-component" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Chip check snapshots: icon 1`] = ` | ||
<div> | ||
<div | ||
class="p-chip p-component" | ||
> | ||
<span | ||
class="p-chip-icon pi pi-check" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Chip check snapshots: image 1`] = ` | ||
<div> | ||
<div | ||
class="p-chip p-component p-chip-image" | ||
> | ||
<img | ||
alt="chip" | ||
src="http://google.com/my.png" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Chip check snapshots: image and alt 1`] = ` | ||
<div> | ||
<div | ||
class="p-chip p-component p-chip-image" | ||
> | ||
<img | ||
alt="jest" | ||
src="http://google.com/my.png" | ||
/> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Chip check snapshots: label 1`] = ` | ||
<div> | ||
<div | ||
class="p-chip p-component" | ||
> | ||
<span | ||
class="p-chip-text" | ||
> | ||
jest | ||
</span> | ||
</div> | ||
</div> | ||
`; |