Skip to content

Commit

Permalink
Update context usages
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Oct 26, 2023
1 parent 318499a commit 490186e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ describe('EuiCollapsibleNavBody', () => {
it('renders with docked styles', () => {
const { container } = render(
<EuiCollapsibleNavContext.Provider
value={{ side: 'left', isPush: true, isCollapsed: true }}
value={{
isPush: true,
isCollapsed: true,
isOverlayOpen: false,
side: 'left',
}}
>
<EuiCollapsibleNavBody {...requiredProps} />
</EuiCollapsibleNavContext.Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ describe('EuiCollapsibleNavGroup', () => {
it('renders as a docked button icon', () => {
const { container } = render(
<EuiCollapsibleNavContext.Provider
value={{ side: 'left', isCollapsed: true, isPush: true }}
value={{
isCollapsed: true,
isPush: true,
isOverlayOpen: false,
side: 'left',
}}
>
<EuiCollapsibleNavGroup {...sharedProps} />
</EuiCollapsibleNavContext.Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ describe('EuiCollapsibleNavItem', () => {
it('renders a collapsed button icon when in a collapsed push flyout', () => {
const { container, getByTestSubject } = render(
<EuiCollapsibleNavContext.Provider
value={{ side: 'left', isPush: true, isCollapsed: true }}
value={{
isPush: true,
isCollapsed: true,
isOverlayOpen: false,
side: 'left',
}}
>
<EuiCollapsibleNavItem {...requiredProps} title="Item" />
</EuiCollapsibleNavContext.Provider>
Expand Down

0 comments on commit 490186e

Please sign in to comment.