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

add solution #126

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

add solution #126

wants to merge 3 commits into from

Conversation

modeltoIT
Copy link

No description provided.

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.

Great job on implementing the checkPassword function! 🎉 Your solution meets the task requirements and constraints effectively. While the test descriptions had some inconsistencies, your code correctly handles the password validation rules. Just make sure to update the test descriptions to accurately reflect the requirements, ensuring clarity for future reviews. Keep up the excellent work! 🚀

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

Comment on lines 26 to 27
it(`should accept\`Aa-Яя\` letters`, () => {
expect(checkPassword('ЯP@ssword1я')).toBeFalsy();

Choose a reason for hiding this comment

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

The test case description should accept 'Aa-Яя' letters is misleading. According to the task requirements, the function should only accept Latin alphabet letters Aa-Zz. Therefore, the expectation for checkPassword('ЯP@ssword1я') should be false, but the description suggests it should be true. Please revise the test description to align with the requirements.

Comment on lines 46 to 47
it(`should not contain at least 1 digit`, () => {
expect(checkPassword('P@ssssdf')).toBeFalsy();

Choose a reason for hiding this comment

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

The test description should not contain at least 1 digit is incorrect. The requirement is that the password should contain at least one digit. Therefore, the description should be revised to reflect that the password must include at least one digit.

Comment on lines 50 to 51
it(`should not contain at least 1 special character`, () => {
expect(checkPassword('Pssssdf1')).toBeFalsy();

Choose a reason for hiding this comment

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

The test description should not contain at least 1 special character is incorrect. The requirement is that the password should contain at least one special character. Please update the description to accurately reflect this requirement.

Comment on lines 54 to 55
it(`should not contain at least 1 uppercase letter`, () => {
expect(checkPassword('p@ssssdf1')).toBeFalsy();

Choose a reason for hiding this comment

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

The test description should not contain at least 1 uppercase letter is incorrect. The requirement is that the password should contain at least one uppercase letter. Please revise the description to align with the task requirements.

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