Skip to content

qa ifElse function solution#233

Open
AnnNikiforova wants to merge 1 commit intomate-academy:masterfrom
AnnNikiforova:develop
Open

qa ifElse function solution#233
AnnNikiforova wants to merge 1 commit intomate-academy:masterfrom
AnnNikiforova:develop

Conversation

@AnnNikiforova
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.

Review Summary

Great job on writing the tests for the ifElse function! I am approving your solution as you have successfully covered all the requirements from the description, and the test structure is logical.

As a small suggestion for future improvement, you can make your tests even more concise. In src/ifElse.test.js, the assertion on line 28 duplicates the one on line 25, and the assertion on line 31 duplicates the one on line 26. Removing these repeated checks would make the test case cleaner. This is a minor point, and overall, this is a solid set of tests.


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

Footnotes

  1. Rate AI review example

Comment on lines +28 to +31
expect(first).toHaveBeenCalledTimes(1);
expect(first).toHaveBeenCalledWith();

expect(second).not.toHaveBeenCalled();

Choose a reason for hiding this comment

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

These checks are redundant. The assertion on line 28 duplicates the one on line 25, and the assertion on line 31 duplicates the one on line 26. You can remove these repeated checks to keep your test case more concise.

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