File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1909,15 +1909,15 @@ describe('useIdleTimer', () => {
19091909 await sleep ( 100 )
19101910 expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 100 , 10 )
19111911 await waitFor ( ( ) => result . current . isIdle ( ) )
1912- expect ( result . current . getRemainingTime ( ) ) . toBe ( 0 )
1912+ expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 0 , 1 )
19131913 result . current . reset ( )
19141914 expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 200 , 10 )
19151915 await waitFor ( ( ) => result . current . isIdle ( ) )
1916- expect ( result . current . getRemainingTime ( ) ) . toBe ( 0 )
1916+ expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 0 , 1 )
19171917 result . current . start ( )
19181918 expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 200 , 10 )
19191919 await waitFor ( ( ) => result . current . isIdle ( ) )
1920- expect ( result . current . getRemainingTime ( ) ) . toBe ( 0 )
1920+ expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 0 , 1 )
19211921 result . current . activate ( )
19221922 expect ( result . current . getRemainingTime ( ) ) . toBeAround ( 200 , 10 )
19231923 } )
You can’t perform that action at this time.
0 commit comments