Hey Dude, #Democracy should work equal for everybody!? That seems to be the only way to have equal #Liberty for everyone.
' - const postWithHastagsQuery = gql ` + const postWithHastagsQuery = gql` query($id: ID) { Post(id: $id) { tags { @@ -314,7 +311,7 @@ describe('Hashtags', () => { const postWithHastagsVariables = { id: postId, } - const createPostMutation = gql ` + const createPostMutation = gql` mutation($postId: ID, $postTitle: String!, $postContent: String!) { CreatePost(id: $postId, title: $postTitle, content: $postContent) { id @@ -342,26 +339,29 @@ describe('Hashtags', () => { }) it('both Hashtags are created with the "id" set to their "name"', async () => { - const expected = [{ + const expected = [ + { id: 'Democracy', - name: 'Democracy' + name: 'Democracy', }, { id: 'Liberty', - name: 'Liberty' + name: 'Liberty', }, ] await expect( query({ query: postWithHastagsQuery, - variables: postWithHastagsVariables + variables: postWithHastagsVariables, }), ).resolves.toEqual( expect.objectContaining({ data: { - Post: [{ - tags: expect.arrayContaining(expected), - }, ], + Post: [ + { + tags: expect.arrayContaining(expected), + }, + ], }, }), ) @@ -371,7 +371,7 @@ describe('Hashtags', () => { // The already existing Hashtag has no class at this point. const updatedPostContent = 'Hey Dude, #Elections should work equal for everybody!? That seems to be the only way to have equal #Liberty for everyone.
' - const updatePostMutation = gql ` + const updatePostMutation = gql` mutation($postId: ID!, $postTitle: String!, $updatedPostContent: String!) { UpdatePost(id: $postId, title: $postTitle, content: $updatedPostContent) { id @@ -391,26 +391,29 @@ describe('Hashtags', () => { }, }) - const expected = [{ + const expected = [ + { id: 'Elections', - name: 'Elections' + name: 'Elections', }, { id: 'Liberty', - name: 'Liberty' + name: 'Liberty', }, ] await expect( query({ query: postWithHastagsQuery, - variables: postWithHastagsVariables + variables: postWithHastagsVariables, }), ).resolves.toEqual( expect.objectContaining({ data: { - Post: [{ - tags: expect.arrayContaining(expected) - }], + Post: [ + { + tags: expect.arrayContaining(expected), + }, + ], }, }), ) @@ -418,4 +421,4 @@ describe('Hashtags', () => { }) }) }) -}) \ No newline at end of file +}) diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index 435a9724e..eddf4edf5 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -88,11 +88,9 @@ {{ $t('login.hello') }} {{ userName }} -