Skip to content

Commit

Permalink
test: update navMenu context
Browse files Browse the repository at this point in the history
  • Loading branch information
@casey_baggz_omni committed May 30, 2024
1 parent eb7d004 commit 0185f02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions packages/react/src/context/navMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ export interface NavMenuContextValue {
onToggle: () => void
}

export const NavMenuContext = createContext<NavMenuContextValue>({
triggerRef: null,
menuRef: null,
expanded: false,
onToggle: () => {},
})
export const NavMenuContext = createContext<NavMenuContextValue | null>(null)

export function NavMenu(props: PropsWithChildren) {
const triggerRef = useRef<HTMLButtonElement>(null)
Expand Down
2 changes: 0 additions & 2 deletions tests/react/context/navMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ describe('navMenu & useNavMenuContext', () => {
)
}

afterEach(cleanup)

test('should export a NavMenu', () => {
render(<NavMenuTest />)
expect(screen.getByText(/trigger/i)).toBeTruthy()
Expand Down

0 comments on commit 0185f02

Please sign in to comment.