Skip to content

Add solution#1091

Open
ProKesha wants to merge 6 commits intomate-academy:masterfrom
ProKesha:develop
Open

Add solution#1091
ProKesha wants to merge 6 commits intomate-academy:masterfrom
ProKesha:develop

Conversation

@ProKesha
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

This is a very strong submission, and you've done an excellent job implementing almost all the requirements. However, this requires a small change before it can be approved. The error message for an unsupported case in src/createServer.js includes a trailing period, which does not match the exact string specified in the task description.

  • Your message: This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.
  • Required message: This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER

This precise wording is necessary for the automated tests to pass. Please remove the period at the end of the sentence. Once that's fixed, this will be ready for approval!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

});
} else if (!SUPPORTED_CASES.includes(toCase)) {
errors.push({
message: `This case is not supported. Available cases: ${SUPPORTED_CASES.join(', ')}.`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The error message generated here includes a trailing period at the end of the sentence. According to the task description, the message should not have this period. Please remove it to ensure the output exactly matches the requirements.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

This submission is very close, but it requires one small change before I can approve it. The error message for an unsupported case in src/createServer.js has a trailing period, which causes the automated tests to fail because they require an exact string match. Please remove the period so the message is exactly: This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER. After you make that quick fix, your solution will be ready!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

});
} else if (!SUPPORTED_CASES.includes(toCase)) {
errors.push({
message: `This case is not supported. Available cases: ${SUPPORTED_CASES.join(', ')}.`,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This error message still has a trailing period. According to the task requirements, the message must be exactly This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER without the period at the end. Please remove it to pass the automated tests.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown
Author

@ProKesha ProKesha left a comment

Choose a reason for hiding this comment

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

I checked this change, but the repository tests and pre-push hook require the message with a trailing period. I kept the version that matches the automated checks.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

I am approving your solution as an educational override to help you progress, but there is one small correction needed. You've done a fantastic job implementing the server logic and handling the requirements! The only thing preventing a perfect score is a minor detail in an error message.

In src/createServer.js, the error message for an unsupported case includes a trailing period:
'This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.'

The automated tests require an exact string match, so please remove the final . to pass the check. Your code is otherwise excellent—great work!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

errors.push({
message: [
'This case is not supported.',
'Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This string has a trailing period, but the required error message does not. Please remove the . at the end to ensure the complete message exactly matches This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.

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.

2 participants