-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add tests for BaseService + fix hex colors #1581
Conversation
Generated by 🚫 dangerJS |
After this lands I'll open a PR to handle query parameters in BaseService. It'll conflict if I do it now. |
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.
Looks good 👍
return await this.handle(namedParams); | ||
} catch (error) { | ||
console.log(error); | ||
return { message: 'error' }; |
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.
Lets not scope creep this PR. I think this is fine for refactoring + adding tests but an improvement we should make here soon is the ability to customise this error based on the exception.
Thanks for reviewing! |
Breaking
invokeHandler
into its own function makes it easy to test the error handling, and also to expand the error handling as I've done in this WIP branch: master...paulmelnikow:rewrite-npm-typedefs