Skip to content

Commit 36f00c4

Browse files
committed
test: ignore line we can't cover
1 parent 9a03895 commit 36f00c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/hooks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ export const initCoreState: CoreState = {
7373
_deferNextClose: false,
7474
}
7575

76-
const defaultPopupId = 'useId' in React ? () => React.useId() : () => undefined
76+
const defaultPopupId =
77+
'useId' in React
78+
? () => React.useId()
79+
: // istanbul ignore next
80+
() => undefined
7781

7882
export function usePopupState({
7983
parentPopupState,

0 commit comments

Comments
 (0)