Skip to content

Commit 720bc4f

Browse files
committed
create-a-TEST-suite-to-check-for-getSingleCommentUpVote-controller
1 parent ac32e72 commit 720bc4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

__test__/api/comments/updateSingleCommentUpVotes.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ describe("PATCH /comments/:commentId/votes/upvote", () => {
5656
afterEach(async () => {
5757
// Delete mocks from the database.
5858
await CommentModel.findByIdAndDelete(oldComment.commentId);
59+
await CommentModel.findByIdAndDelete(oldCommentWithUpVote.commentId);
5960
await CommentModel.findByIdAndDelete(oldCommentWithDownVote.commentId);
6061

6162
// Delete cache.

0 commit comments

Comments
 (0)