it('should call digest with correct parameters', () => {
      login.invalidPassword('robin4ever', 'hashedDbPassword', 'thisissalt')

      expect(crypto.createHmac().digest).toHaveBeenCalledWith('hex')
    })