-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test(ramp): add useFiatCurrencies
tests
#9582
Conversation
Bitrise✅✅✅ Commit hash: f71809a Note
|
Bitrise✅✅✅ Commit hash: 48b3fbf Note
|
Quality Gate passedIssues Measures |
awesome! I have a small suggestion for cleaning up this file, but it's a nit. I see some re-used data passed to I haven't run this code, but something like this might be helpful:
and then the test could look like this:
another example:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a nit to consider.
I see the direction of your comment but I think another layer of indirection would be mostl helpful for default-ish cases. In this case I vary the combinations for the two sets of { data, error, loading } a lot. In the abstracted method there are already 6 arguments and there's still missing two more for the So in most cases it won't look like this |
Quality Gate passedIssues Measures |
Description
This PR adds tests for the
useFiatCurrencies
hook in Ramp folder.Related issues
Fixes: N/A
Manual testing steps
N/A
Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist