I have a function I wish to test called withCredentials which I use to pass the required arguments needed to make an API call with the user\'s credentials , it
withCredentials