Skip to content

Commit

Permalink
test: ignore line we can't cover
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Aug 29, 2024
1 parent 9a03895 commit 36f00c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ export const initCoreState: CoreState = {
_deferNextClose: false,
}

const defaultPopupId = 'useId' in React ? () => React.useId() : () => undefined
const defaultPopupId =
'useId' in React
? () => React.useId()
: // istanbul ignore next
() => undefined

export function usePopupState({
parentPopupState,
Expand Down

0 comments on commit 36f00c4

Please sign in to comment.