forked from nyaruka/floweditor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
053f65f
commit fbe7e5d
Showing
3 changed files
with
32 additions
and
113 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
83 changes: 13 additions & 70 deletions
83
src/components/form/switch/__snapshots__/SwitchElement.test.ts.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 |
---|---|---|
@@ -1,79 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CheckboxElement should render a checkbox element with title, description 1`] = ` | ||
Array [ | ||
Object { | ||
"checked": true, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`CheckboxElement should render a checkbox element with title, description 2`] = ` | ||
<label | ||
className="label label" | ||
onClick={[Function]} | ||
> | ||
<span | ||
className="fe-check-square checkbox" | ||
data-spec="checkbox" | ||
/> | ||
<div | ||
className="title" | ||
data-spec="title" | ||
> | ||
Checkbox | ||
</div> | ||
<div | ||
className="description" | ||
data-spec="description" | ||
> | ||
All Destinations | ||
</div> | ||
</label> | ||
`; | ||
|
||
exports[`CheckboxElement should render a checkbox element with title, description 3`] = ` | ||
<label | ||
className="label label" | ||
onClick={[Function]} | ||
> | ||
<span | ||
className="fe-check-square checkbox" | ||
data-spec="checkbox" | ||
exports[`SwitchElement should render a switch element with description: unchecked 1`] = ` | ||
<Fragment> | ||
<ForwardRef | ||
data-spec="switch" | ||
on={ | ||
Object { | ||
"input": [Function], | ||
} | ||
} | ||
textRight="Switch" | ||
value={false} | ||
/> | ||
<div | ||
className="title" | ||
data-spec="title" | ||
/> | ||
<div | ||
className="description_solo" | ||
data-spec="description" | ||
> | ||
Continue when there is no response | ||
</div> | ||
</label> | ||
`; | ||
|
||
exports[`CheckboxElement should render a checkbox element with title, description: unchecked 1`] = ` | ||
<label | ||
className="label label" | ||
onClick={[Function]} | ||
> | ||
<span | ||
className="fe-square checkbox" | ||
data-spec="checkbox" | ||
/> | ||
<div | ||
className="title" | ||
data-spec="title" | ||
> | ||
Checkbox | ||
</div> | ||
<div | ||
className="description" | ||
className="u font secondary body-sm color-neutral-cloudy description" | ||
data-spec="description" | ||
> | ||
All Destinations | ||
</div> | ||
</label> | ||
</Fragment> | ||
`; |