lint fixes backend

This commit is contained in:
Ulf Gebhardt 2021-04-12 10:55:05 +02:00
parent 0951ff6f4f
commit 77a0faf293
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -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', () => {