-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Components: Refactor TreeGrid RovingTabIndexItem tests to RTL (#44821)
- Loading branch information
Showing
2 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
32 changes: 17 additions & 15 deletions
32
packages/components/src/tree-grid/test/__snapshots__/roving-tab-index-item.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 |
---|---|---|
@@ -1,25 +1,27 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`RovingTabIndexItem allows another component to be specified as the rendered component using the \`as\` prop 1`] = ` | ||
<button | ||
onFocus={[Function]} | ||
/> | ||
<div> | ||
<button /> | ||
</div> | ||
`; | ||
|
||
exports[`RovingTabIndexItem allows children to be declared using a child render function as an alternative to \`as\` 1`] = ` | ||
<button | ||
className="my-button" | ||
onFocus={[Function]} | ||
> | ||
Click Me! | ||
</button> | ||
<div> | ||
<button | ||
class="my-button" | ||
> | ||
Click Me! | ||
</button> | ||
</div> | ||
`; | ||
|
||
exports[`RovingTabIndexItem forwards props to the \`as\` component 1`] = ` | ||
<button | ||
className="my-button" | ||
onFocus={[Function]} | ||
> | ||
Click Me! | ||
</button> | ||
<div> | ||
<button | ||
class="my-button" | ||
> | ||
Click Me! | ||
</button> | ||
</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