Skip to content

done Case transformer server GH task#1090

Open
maximtsyrulnyk wants to merge 2 commits intomate-academy:masterfrom
maximtsyrulnyk:develop
Open

done Case transformer server GH task#1090
maximtsyrulnyk wants to merge 2 commits intomate-academy:masterfrom
maximtsyrulnyk:develop

Conversation

@maximtsyrulnyk
Copy link

done Case transformer server GH task

Copy link

@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

Great work on the server implementation! The overall structure, request handling, and validation logic are well done. However, changes are needed because a specific error message does not exactly match the task requirements, which will cause the automated tests to fail.

In src/createServer.js, the error message for an unsupported case currently ends with a period. Please remove the period to ensure the message is an exact match to the one specified in the task description.

Once you've made that small correction, 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

Comment on lines +33 to +34
'This case is not supported. Available cases:' +
' SNAKE, KEBAB, CAMEL, PASCAL, UPPER.',

Choose a reason for hiding this comment

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

This error message is almost correct, but the task description specifies the message without a period at the end. Please ensure all error messages match the requirements exactly.

@maximtsyrulnyk
Copy link
Author

edited code according reccommendations

Copy link

@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 so close to perfect! Your server logic is well-implemented, but there's one small detail from the previous review that needs to be addressed. The error message for an unsupported case in src/createServer.js still has a period at the end. This is causing the automated tests to fail because the task requires an exact string match. Please update the message to be exactly: This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER. Once that small change is made, everything will be ready for approval. Great work on the rest of the implementation!


✨ 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

const TO_CASE_REQUIRED_MESSAGE =
'"toCase" query param is required. Correct request is: "/<TEXT_TO_CONVERT>?toCase=<CASE_NAME>".';
const INVALID_CASE_MESSAGE =
'This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.';

Choose a reason for hiding this comment

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

This is very close! The task requires the error message to be an exact match. Please remove the period (.) at the end of this string to match the requirement: This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.

Copy link

@vadiimvooo vadiimvooo left a comment

Choose a reason for hiding this comment

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

Well done

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.

3 participants