-
Notifications
You must be signed in to change notification settings - Fork 144
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
fix: add common error handling for missing or wrong username #171
Conversation
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.
Make sure you follow the Angular commit convention as explained in the contribution guidelines.
Okay, thanks. I'll rebase and update once review process is completed. I think it's done now. since my doubt is resolved. Thanks! |
src/repo/__tests__/github.js
Outdated
@@ -65,6 +65,10 @@ test('handle errors', async () => { | |||
await rejects(getUserInfo('nodisplayname')) | |||
}) | |||
|
|||
test('Throw error when no username is provided', () => { | |||
expect(getUserInfo).toThrow('No login when adding a contributor. Please specify a username.') |
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.
@sinchang I did it like this. Re read documentation. Actually expect should call the function not us.
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.
@Berkmann18 friendly ping
28c933e
to
c9a470b
Compare
🎉 This PR is included in version 6.1.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What:
issue #6
Why:
How:
Checklist: