bounswe / bounswe2022group4

6 stars 3 forks source link

Frontend: Added Unit Tests for CommentBox and Comment Components #628

Closed mbatuhan-malazgirt closed 1 year ago

mbatuhan-malazgirt commented 1 year ago

Description:

As per the issue #627 , I have prepared unit test cases for the CommentBox and Comment components in React.

The test cases for the Comment and CommentBox components are tested that the components are rendered correctly and that they are rendered with the correct props.

Steps to reproduce:

Run the test cases using a testing library, such as Jest

Expected result:

The test cases should pass, indicating that the Comment and CommentBox components are rendering correctly and with the correct props.

Actual result:

The test cases pass as expected.

@umutdenizsenerr Deadline: 27.12.2022 11.59 A.M

umutdenizsenerr commented 1 year ago

Test cases prepared for the use cases.