mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add software tests for two notifications bug
This commit is contained in:
parent
c21ad2244f
commit
b4a9e3e551
@ -482,19 +482,6 @@ describe('notifications', () => {
|
|||||||
title = 'Post where Im the author and I get mentioned in a comment'
|
title = 'Post where Im the author and I get mentioned in a comment'
|
||||||
postContent = 'Content of post where I get mentioned in a comment.'
|
postContent = 'Content of post where I get mentioned in a comment.'
|
||||||
postAuthor = notifiedUser
|
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 () => {
|
it('sends only one notification with reason commented_on_post, no notification with reason mentioned_in_comment', async () => {
|
||||||
await createCommentOnPostAction()
|
await createCommentOnPostAction()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user