Skip to content

Commit 61e7352

Browse files
committed
fix: Uncovered test
1 parent f416969 commit 61e7352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/resolvers/addComment.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ describe('Should send required discord notifications', () => {
118118
...mockAddCommentArgs
119119
})
120120

121-
// tests sending notification if the author ID is different from the comment author ID
121+
// tests sending notification if the author ID is different from the comment author ID & submission author ID
122122
prismaMock.comment.findMany.mockResolvedValue([
123123
commentMock,
124-
{ ...commentMock, author: { ...commentMock.author, id: 2 } }
124+
{ ...commentMock, author: { ...commentMock.author, id: 3 } }
125125
])
126126

127127
await addComment({}, mockAddCommentArgs, mockCtx)

0 commit comments

Comments
 (0)