@@ -23,7 +23,7 @@ describe('useIdle', () => {
2323 // the total of the events is idleEventsList + visibilitychange
2424 const totEvents = idleEventsList . length + 1
2525
26- it ( 'should call document. addEventListener' , async ( ) => {
26+ it ( 'should call addEventListener' , async ( ) => {
2727 const addEventListenerSpy = jest . spyOn ( document , 'addEventListener' )
2828 const removeEventListenerSpy = jest . spyOn ( document , 'removeEventListener' )
2929 const wrapper = mount ( testComponent ( ) )
@@ -43,7 +43,7 @@ describe('useIdle', () => {
4343 )
4444 } )
4545
46- it ( 'should call document. addEventListener again when start is called' , async ( ) => {
46+ it ( 'should call addEventListener again when start is called' , async ( ) => {
4747 const addEventListenerSpy = jest . spyOn ( document , 'addEventListener' )
4848 const wrapper = mount ( testComponent ( ) )
4949 expect ( addEventListenerSpy ) . toHaveBeenCalledTimes ( totEvents )
@@ -55,7 +55,7 @@ describe('useIdle', () => {
5555 expect ( addEventListenerSpy ) . toHaveBeenCalledTimes ( totEvents * 2 )
5656 } )
5757
58- it ( 'should call document. removeEventListener when stop is called' , async ( ) => {
58+ it ( 'should call removeEventListener when stop is called' , async ( ) => {
5959 const removeEventListenerSpy = jest . spyOn ( document , 'removeEventListener' )
6060 const wrapper = mount ( testComponent ( ) )
6161 wrapper . find ( '#stop' ) . trigger ( 'click' )
0 commit comments