-
Notifications
You must be signed in to change notification settings - Fork 128
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
Helper function for fetching errors of specific type #543
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #543 +/- ##
===========================================
+ Coverage 94.02% 94.06% +0.03%
===========================================
Files 10 10
Lines 469 472 +3
===========================================
+ Hits 441 444 +3
Misses 28 28 ☔ View full report in Codecov by Sentry. |
LGTM. You could add some more explicit tests, though. 😄 |
Not sure what you mean? I find them pretty explicit haha 😅 Could improve to test names though |
That. It just tests for |
Added simple helper function for fetching error of a specific type. This could be helpful when a error converter is added to convert error into a custom error object. This reduces the boilerplate needed to get the custom error from the response.
See #429