benoit-bremaud / HappiHub

HappiHub - A platform for organizing and discovering cultural and artistic events. Join the community and explore events happening around you!
https://www.happihub.com
MIT License
1 stars 3 forks source link

`test/202-create-unit-tests-for-delete-comments-by-user-id` #202

Open benoit-bremaud opened 4 months ago

benoit-bremaud commented 4 months ago

Description:

Summary

Create unit tests to ensure the functionality and robustness of the DELETE /comments/user/:userId route. These tests will verify that the route correctly deletes all comments by a specific user ID and handles various edge cases, including authorization checks.

Context

Unit tests are essential to verify that the DELETE /comments/user/:userId route works as intended. This route allows authenticated users to delete all comments by a specific user ID, ensuring only the author or an admin can perform the deletion. Tests will help ensure the route handles different scenarios correctly, such as missing comments, unauthorized access, and successful deletion.

Objectives

Acceptance Criteria

Tasks

Resources

UML Diagrams References

Branch Name

test/202-create-unit-tests-for-delete-comments-by-user-id

Complementary Suggested Tasks