-
Notifications
You must be signed in to change notification settings - Fork 323
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
dfb6631
commit 00a8b6f
Showing
4 changed files
with
172 additions
and
9 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
142 changes: 142 additions & 0 deletions
142
src/components/Menu/MenuItemButton/__tests__/__snapshots__/menuItemButton.jest.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,142 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Snapshots renders correctly when disabled 1`] = ` | ||
<li | ||
aria-current={false} | ||
className="monday-style-menu-item-button" | ||
id="undefined-undefined" | ||
role="menuitem" | ||
> | ||
<button | ||
aria-busy={false} | ||
aria-expanded={false} | ||
aria-haspopup={false} | ||
className="monday-style-button monday-style-button--size-small monday-style-button--kind-primary monday-style-button--color-primary" | ||
disabled={true} | ||
onBlur={[Function]} | ||
onClick={[Function]} | ||
onFocus={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseUp={[Function]} | ||
type="button" | ||
> | ||
<div | ||
className="menu-item-button-content" | ||
> | ||
my item | ||
</div> | ||
</button> | ||
</li> | ||
`; | ||
|
||
exports[`Snapshots renders correctly when selected 1`] = ` | ||
<li | ||
aria-current={false} | ||
className="monday-style-menu-item-button" | ||
id="undefined-undefined" | ||
role="menuitem" | ||
> | ||
<button | ||
aria-busy={false} | ||
aria-expanded={false} | ||
aria-haspopup={false} | ||
className="monday-style-button monday-style-button--size-small monday-style-button--kind-primary monday-style-button--color-primary" | ||
disabled={false} | ||
onBlur={[Function]} | ||
onClick={[Function]} | ||
onFocus={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseUp={[Function]} | ||
type="button" | ||
> | ||
<div | ||
className="menu-item-button-content" | ||
> | ||
my item | ||
</div> | ||
</button> | ||
</li> | ||
`; | ||
|
||
exports[`Snapshots renders correctly with custom class name 1`] = ` | ||
<li | ||
aria-current={false} | ||
className="monday-style-menu-item-button dummy-class-name" | ||
id="undefined-undefined" | ||
role="menuitem" | ||
> | ||
<button | ||
aria-busy={false} | ||
aria-expanded={false} | ||
aria-haspopup={false} | ||
className="monday-style-button monday-style-button--size-small monday-style-button--kind-primary monday-style-button--color-primary" | ||
disabled={false} | ||
onBlur={[Function]} | ||
onClick={[Function]} | ||
onFocus={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseUp={[Function]} | ||
type="button" | ||
> | ||
<div | ||
className="menu-item-button-content" | ||
/> | ||
</button> | ||
</li> | ||
`; | ||
|
||
exports[`Snapshots renders correctly with empty props 1`] = ` | ||
<li | ||
aria-current={false} | ||
className="monday-style-menu-item-button" | ||
id="undefined-undefined" | ||
role="menuitem" | ||
> | ||
<button | ||
aria-busy={false} | ||
aria-expanded={false} | ||
aria-haspopup={false} | ||
className="monday-style-button monday-style-button--size-small monday-style-button--kind-primary monday-style-button--color-primary" | ||
disabled={false} | ||
onBlur={[Function]} | ||
onClick={[Function]} | ||
onFocus={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseUp={[Function]} | ||
type="button" | ||
> | ||
<div | ||
className="menu-item-button-content" | ||
/> | ||
</button> | ||
</li> | ||
`; | ||
|
||
exports[`Snapshots renders correctly with title and icon 1`] = ` | ||
<li | ||
aria-current={false} | ||
className="monday-style-menu-item-button" | ||
id="undefined-undefined" | ||
role="menuitem" | ||
> | ||
<button | ||
aria-busy={false} | ||
aria-expanded={false} | ||
aria-haspopup={false} | ||
className="monday-style-button monday-style-button--size-small monday-style-button--kind-primary monday-style-button--color-primary" | ||
disabled={false} | ||
onBlur={[Function]} | ||
onClick={[Function]} | ||
onFocus={[Function]} | ||
onMouseDown={[Function]} | ||
onMouseUp={[Function]} | ||
type="button" | ||
> | ||
<div | ||
className="menu-item-button-content" | ||
> | ||
my item | ||
</div> | ||
</button> | ||
</li> | ||
`; |
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