mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix failing test after new implementation merged in
This commit is contained in:
parent
b187fbb7b2
commit
e7b70ce7cd
@ -117,9 +117,9 @@ describe('currentUser { notifications }', () => {
|
|||||||
// during development and thought: A feature not a bug! This way we
|
// during development and thought: A feature not a bug! This way we
|
||||||
// can encode a re-mentioning of users when you edit your post or
|
// can encode a re-mentioning of users when you edit your post or
|
||||||
// comment.
|
// comment.
|
||||||
const createPostMutation = gql`
|
const updatePostMutation = gql`
|
||||||
mutation($id: ID!, $content: String!) {
|
mutation($id: ID!, $title: String!, $content: String!) {
|
||||||
UpdatePost(id: $id, content: $content) {
|
UpdatePost(id: $id, content: $content, title: $title) {
|
||||||
title
|
title
|
||||||
content
|
content
|
||||||
}
|
}
|
||||||
@ -128,8 +128,9 @@ describe('currentUser { notifications }', () => {
|
|||||||
authorClient = new GraphQLClient(host, {
|
authorClient = new GraphQLClient(host, {
|
||||||
headers: authorHeaders,
|
headers: authorHeaders,
|
||||||
})
|
})
|
||||||
await authorClient.request(createPostMutation, {
|
await authorClient.request(updatePostMutation, {
|
||||||
id: post.id,
|
id: post.id,
|
||||||
|
title: post.title,
|
||||||
content: updatedContent,
|
content: updatedContent,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -240,7 +241,7 @@ describe('Hashtags', () => {
|
|||||||
const updatedPostContent =
|
const updatedPostContent =
|
||||||
'<p>Hey Dude, <a class="hashtag" href="/search/hashtag/Elections">#Elections</a> should work equal for everybody!? That seems to be the only way to have equal <a href="/search/hashtag/Liberty">#Liberty</a> for everyone.</p>'
|
'<p>Hey Dude, <a class="hashtag" href="/search/hashtag/Elections">#Elections</a> should work equal for everybody!? That seems to be the only way to have equal <a href="/search/hashtag/Liberty">#Liberty</a> for everyone.</p>'
|
||||||
const updatePostMutation = gql`
|
const updatePostMutation = gql`
|
||||||
mutation($postId: ID!, $postTitle: String, $updatedPostContent: String) {
|
mutation($postId: ID!, $postTitle: String!, $updatedPostContent: String!) {
|
||||||
UpdatePost(id: $postId, title: $postTitle, content: $updatedPostContent) {
|
UpdatePost(id: $postId, title: $postTitle, content: $updatedPostContent) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user