-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(react): Add snapshot for Switch component
- Loading branch information
1 parent
892bea3
commit 9a75fa2
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
packages/react/src/components/Switch/__tests__/__snapshots__/Switch.test.tsx.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[`Alert should match the snapshot 1`] = ` | ||
<body> | ||
<div> | ||
<span | ||
class="MuiSwitch-root MuiSwitch-sizeMedium oxygen-switch css-julti5-MuiSwitch-root" | ||
> | ||
<span | ||
class="MuiButtonBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary PrivateSwitchBase-root MuiSwitch-switchBase MuiSwitch-colorPrimary css-67kisp-MuiButtonBase-root-MuiSwitch-switchBase" | ||
> | ||
<input | ||
class="PrivateSwitchBase-input MuiSwitch-input css-1m9pwf3" | ||
type="checkbox" | ||
/> | ||
<span | ||
class="MuiSwitch-thumb css-1fn27bw-MuiSwitch-thumb" | ||
/> | ||
<span | ||
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" | ||
/> | ||
</span> | ||
<span | ||
class="MuiSwitch-track css-14pk2-MuiSwitch-track" | ||
/> | ||
</span> | ||
</div> | ||
</body> | ||
`; |