', function() {       const spy = jest.spyOn(heartBeat, 'setUserInactive');       return heartBeat.pollSessionEndPoint().then(() => {         expect(spy).toHaveBeenCalledTimes(0);       });     });     it('should call _wait', function() {       const spy = jest.spyOn(heartBeat, '