add software tests for two notifications bug

This commit is contained in:
Kapil Jain 2019-10-31 05:08:15 -04:00
parent c21ad2244f
commit b4a9e3e551

View File

@ -482,19 +482,6 @@ describe('notifications', () => {
title = 'Post where Im the author and I get mentioned in a comment'
postContent = 'Content of post where I get mentioned in a comment.'
postAuthor = notifiedUser
const createPostAction = async () => {
authenticatedUser = await postAuthor.toJson()
await mutate({
mutation: createPostMutation,
variables: {
id: 'p49',
title,
postContent,
categoryIds,
},
})
authenticatedUser = await notifiedUser.toJson()
}
})
it('sends only one notification with reason commented_on_post, no notification with reason mentioned_in_comment', async () => {
await createCommentOnPostAction()