-
-
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
[bundlephobia] add badge for the npm package size #1481
Conversation
Generated by 🚫 dangerJS |
Hey @tlaziuk if you could please merge master again the tests should run as expected 😄 |
hey maintainers, you have to do something with the tests - take a look at the results - https://circleci.com/gh/badges/shields/1917?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link |
I've refactored the test in 7bd0d9f IMO it's more readable now and covers the same cases as the previous code |
server.js
Outdated
}; | ||
|
||
const formatErrorCode = (code) => | ||
code.replace(/([A-Z])/g, ' $1').substring(1).toLowerCase(); |
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.
How about .trim()
instead of .substring(1)
, which is clearer and possibly a little more resilient to changes in the input?
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.
I agree with you.
t.create(`Testing format '${format}' against '${get}'`) | ||
.get(get) | ||
.expectJSONTypes(Joi.object().keys(expect)) | ||
} |
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.
Lovely, much obliged!
Thanks for the teamwork! |
Yay! I've been watching/waiting on this badge 😁 Looking forward to release 🎉 |
@tlaziuk Great work! Thanks a lot for taking this forward. |
I did not do any work, it’s thanks to @tlaziuk! I’m just an eager bystander 😂 |
@paulmelnikow Any idea when this is going to go live ? |
@pastelsky, I will quote @paulmelnikow on that:
|
Great! Looking forward to it. |
Any news when this badge will be available? |
the old PR - #1391
todo