-
Notifications
You must be signed in to change notification settings - Fork 323
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
Feature/capitalize title #561
Feature/capitalize title #561
Conversation
let properties = schema!.properties; | ||
assert.notEqual(schema!.properties, undefined) | ||
properties = properties!; | ||
for (const property of Object.entries(properties)) { |
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.
Instead of testing with some logic, please just create a new test case or update an existing test case with a fully specified 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.
Which?
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.
What’s your question?
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 do not understand what I should do
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.
Unit tests should have as little logic as possible to make them easier to debug and find issues. Your test uses the same library we use to generate the title so if something ever changes, we don’t notice it in the test. Ideally tests don’t have loops or call libraries.
Closing since there is some work to be done here to wrap this up. There is a workaround in #559 (comment). |
Please:
Readme.md
Fixes #559