You're coverage shows you are not testing the error branch when using the testRequest function
This error is returned but is not handled by the callback, therefore the function that calls this function with a callback will have no access to the error (in the error first manner). So this function call in the handler file
Perhaps return the error in the testRequest function, and in this handle function check for the error exists to serve notify the user in some way.
If you wanted to test the testRequest function, you'll never be certain that the tflApi url will not return data, but you can at least check the contents of the error branch is testRequest returns an error
You're coverage shows you are not testing the error branch when using the testRequest function
This error is returned but is not handled by the callback, therefore the function that calls this function with a callback will have no access to the error (in the error first manner). So this function call in the handler file
will not deal with the error.
Perhaps return the error in the testRequest function, and in this handle function check for the error exists to serve notify the user in some way.
If you wanted to test the testRequest function, you'll never be certain that the tflApi url will not return data, but you can at least check the contents of the error branch is testRequest returns an error