Skip to content

Commit 0f0cb1e

Browse files
committed
Preliminary: test coverage fix
1 parent 0f29f28 commit 0f0cb1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hooks/use-click-away.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type UseClickAwayOptions = {
1616
export function useClickAway(
1717
container: RefObject<HTMLElement | undefined>,
1818
callback: (e: Event) => void,
19-
{ enabled = true }: UseClickAwayOptions
19+
{ enabled = true }: UseClickAwayOptions = {}
2020
) {
2121
useEffect(() => {
2222
if (!enabled) {

src/hooks/use-focus-away.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type UseFocusAwayOptions = {
1919
export function useFocusAway(
2020
container: RefObject<HTMLElement | undefined>,
2121
callback: (e: FocusEvent) => void,
22-
{ enabled = true }: UseFocusAwayOptions
22+
{ enabled = true }: UseFocusAwayOptions = {}
2323
) {
2424
useEffect(() => {
2525
if (!enabled) {

src/hooks/use-key-press.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type UseKeyPressOptions = {
1616
export function useKeyPress(
1717
keys: string[],
1818
callback: (e: KeyboardEvent) => void,
19-
{ enabled = true }: UseKeyPressOptions
19+
{ enabled = true }: UseKeyPressOptions = {}
2020
) {
2121
useEffect(() => {
2222
if (!enabled) {

0 commit comments

Comments
 (0)