mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix lint
This commit is contained in:
parent
9233049ff3
commit
86f9824c2e
@ -114,7 +114,7 @@ describe('slugifyMiddleware', () => {
|
||||
})
|
||||
|
||||
describe('but if the client specifies a slug', () => {
|
||||
it('rejects CreatePost', async (done) => {
|
||||
it('rejects CreatePost', async done => {
|
||||
variables = {
|
||||
...variables,
|
||||
title: 'Pre-existing post',
|
||||
@ -123,7 +123,9 @@ describe('slugifyMiddleware', () => {
|
||||
categoryIds,
|
||||
}
|
||||
try {
|
||||
await expect(mutate({ mutation: createPostMutation, variables })).resolves.toMatchObject({
|
||||
await expect(
|
||||
mutate({ mutation: createPostMutation, variables }),
|
||||
).resolves.toMatchObject({
|
||||
errors: [
|
||||
{
|
||||
message: 'Post with this slug already exists!',
|
||||
@ -131,7 +133,7 @@ describe('slugifyMiddleware', () => {
|
||||
],
|
||||
})
|
||||
done()
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
throw new Error(`
|
||||
${error}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user