mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
lint fixes backend
This commit is contained in:
parent
0951ff6f4f
commit
77a0faf293
@ -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', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user