Closed robgravy closed 3 years ago
Issue-Label Bot is automatically applying the label feature_request
to this issue, with a confidence of 0.61. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hi, I am looking further into this, since the way you are approaching the test seems to be the correct one. I will get back to you ASAP with a solution. Cheers and thanks for the issue!
Dang it! I remembered why you can't do that as of right now ☹️. So, since the client is actually not implemented via interfaces we need to provide one or provide a client to be mocked. I am working hard to add testing and refactoring the bits and pieces that are affected by this so we can actually start using the package in the way it's supposed to work. I am so sorry for the inconveniences that this has brought for you.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm building an http client with:
I'd like to mock a
401
via:But I'm getting an error:
type 'Future<Response>' is not a subtype of type 'Future<String>'
. Any examples or tips would be awesome!