Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests and mocking #6

Open
simonmcl opened this issue Jul 12, 2021 · 1 comment
Open

Unit tests and mocking #6

simonmcl opened this issue Jul 12, 2021 · 1 comment

Comments

@simonmcl
Copy link

Theres no way to pass in a URLSession into any of the functions or constructors. This is how most libraries expose the ability to mock URL requests so that code can be unit tested.

Is there any other method available to mock requests that i've missed?

If not, please update the library to allow me to pass in my own URLSession so I can create my own mocks

@simonmcl
Copy link
Author

@rathishubham7

@chaitanyapotti chaitanyapotti transferred this issue from torusresearch/fetch-node-details Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant