diff --git a/backend/src/schema/resolvers/posts.spec.js b/backend/src/schema/resolvers/posts.spec.js index dc3f1dbbb..1317d7c22 100644 --- a/backend/src/schema/resolvers/posts.spec.js +++ b/backend/src/schema/resolvers/posts.spec.js @@ -147,7 +147,7 @@ describe('Post', () => { }) }) - /*it('by categories', async () => { + /* it('by categories', async () => { const postQueryFilteredByCategories = gql` query Post($filter: _PostFilter) { Post(filter: $filter) { @@ -172,7 +172,7 @@ describe('Post', () => { await expect( query({ query: postQueryFilteredByCategories, variables }), ).resolves.toMatchObject(expected) - })*/ + }) */ describe('by emotions', () => { const postQueryFilteredByEmotions = gql` @@ -324,12 +324,7 @@ describe('UpdatePost', () => { let author, newlyCreatedPost const updatePostMutation = gql` mutation($id: ID!, $title: String!, $content: String!, $image: ImageInput) { - UpdatePost( - id: $id - title: $title - content: $content - image: $image - ) { + UpdatePost(id: $id, title: $title, content: $content, image: $image) { id title content @@ -424,7 +419,7 @@ describe('UpdatePost', () => { expect(newlyCreatedPost.updatedAt).not.toEqual(UpdatePost.updatedAt) }) - /*describe('no new category ids provided for update', () => { + /* describe('no new category ids provided for update', () => { it('resolves and keeps current categories', async () => { const expected = { data: { @@ -439,9 +434,9 @@ describe('UpdatePost', () => { expected, ) }) - })*/ + }) */ - /*describe('given category ids', () => { + /* describe('given category ids', () => { beforeEach(() => { variables = { ...variables, categoryIds: ['cat27'] } }) @@ -460,7 +455,7 @@ describe('UpdatePost', () => { expected, ) }) - })*/ + }) */ describe('params.image', () => { describe('is object', () => {