diff --git a/backend/src/schema/resolvers/posts.spec.js b/backend/src/schema/resolvers/posts.spec.js index f0c57b8fb..dc3f1dbbb 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` @@ -323,12 +323,11 @@ describe('CreatePost', () => { describe('UpdatePost', () => { let author, newlyCreatedPost const updatePostMutation = gql` - mutation($id: ID!, $title: String!, $content: String!, $categoryIds: [ID], $image: ImageInput) { + mutation($id: ID!, $title: String!, $content: String!, $image: ImageInput) { UpdatePost( id: $id title: $title content: $content - categoryIds: $categoryIds image: $image ) { id @@ -338,9 +337,6 @@ describe('UpdatePost', () => { name slug } - categories { - id - } createdAt updatedAt } @@ -428,7 +424,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: { @@ -443,9 +439,9 @@ describe('UpdatePost', () => { expected, ) }) - }) + })*/ - describe('given category ids', () => { + /*describe('given category ids', () => { beforeEach(() => { variables = { ...variables, categoryIds: ['cat27'] } }) @@ -464,7 +460,7 @@ describe('UpdatePost', () => { expected, ) }) - }) + })*/ describe('params.image', () => { describe('is object', () => {