Skip to content
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

Closed

Conversation

FreePhoenix888
Copy link

@FreePhoenix888 FreePhoenix888 commented Jul 24, 2023

Please:

  • Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled.
  • Provide a test case & update the documentation in the Readme.md

Fixes #559

@FreePhoenix888
Copy link
Author

@domoritz

let properties = schema!.properties;
assert.notEqual(schema!.properties, undefined)
properties = properties!;
for (const property of Object.entries(properties)) {
Copy link
Collaborator

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What’s your question?

Copy link
Author

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

Copy link
Collaborator

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.

@domoritz
Copy link
Collaborator

domoritz commented Nov 8, 2024

Closing since there is some work to be done here to wrap this up. There is a workaround in #559 (comment).

@domoritz domoritz closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to generate title in human readable format?
2 participants