Skip to content

Commit

Permalink
Added another check
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Jan 31, 2025
1 parent 5374ae9 commit 189cfb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/useSyncFocusTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('useSyncFocus', () => {
expect(refMock.current.focus).not.toHaveBeenCalled();

rerender({isFocused: false});
expect(refMock.current.focus).not.toHaveBeenCalled();

// When shouldSyncFocus and isFocused are true
rerender({isFocused: true, shouldSyncFocus: true});
Expand Down

0 comments on commit 189cfb7

Please sign in to comment.