Skip to content

Commit

Permalink
[@mantine/hooks] use-idle: Fix test formatting (#6682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Parrott committed Aug 26, 2024
1 parent 1521c31 commit 0383111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@mantine/hooks/src/use-idle/use-idle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ describe('@mantine/hooks/use-idle', () => {
const spy = jest.spyOn(window, 'setTimeout');
expect(spy).not.toHaveBeenCalled();

const hook = renderHook(() => useIdle(1000, { initialState: false, events: ['click', 'keypress'] }));
const hook = renderHook(() =>
useIdle(1000, { initialState: false, events: ['click', 'keypress'] })
);

expect(hook.result.current).toBe(false);
expect(spy).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 0383111

Please sign in to comment.