 call setUserInactive once the session check is complete if enabled', function() {       const setUserInactiveStub = jest.spyOn(heartBeat, 'setUserInactive');       heartBeat._enabled = true;       return heartBeat.pollSessionEndPoint().then(() => {         expect(setUserInactiveStub).toHaveBeenCalledTimes(0);       });     });     it('should not call setUserInactive once the session check is complete if not enabled', function() {       const setUserInactiveStub = jest.spyOn(heartBeat, 'setUserInactive');       heartBeat._enabled = false;       return heartBeat.pollSessionEndPoint().then(() => {         expect(setUserInactiveStub).toHaveBeenCalledTimes(0);       });     });     it('should call _wait once the session check is complete if enabled', function() {       const _waitStub = jest.spyOn(heartBeat, '_wait');       heartBeat._enabled = true;       return heartBeat.pollSessionEndPoint().then(() => {         expect(_waitStub).toHaveBeenCalledTimes(0);       });     });     it('should not call _wait once the session check is complete if not enabled', function() {       const _waitStub = jest.spyOn(heartBeat, '_wait');       heartBeat._enabled = false;       return heartBeat.pollSessionEndPoint().then(() => {         expect(_waitStub).toHaveBeenCalledTimes(0);       });     });     it('should not call _