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
6d856a3edc
commit
1b268b4891
@ -6,8 +6,6 @@ import { createTestClient } from 'apollo-server-testing'
|
|||||||
|
|
||||||
const categoryIds = ['cat9']
|
const categoryIds = ['cat9']
|
||||||
let user
|
let user
|
||||||
let anotherUser
|
|
||||||
let moderator
|
|
||||||
let admin
|
let admin
|
||||||
let authenticatedUser
|
let authenticatedUser
|
||||||
|
|
||||||
@ -290,8 +288,6 @@ describe('Delete a User as admin', () => {
|
|||||||
describe('authenticated as Admin', () => {
|
describe('authenticated as Admin', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
admin = await Factory.build(
|
admin = await Factory.build(
|
||||||
|
|
||||||
|
|
||||||
'user',
|
'user',
|
||||||
{
|
{
|
||||||
role: 'admin',
|
role: 'admin',
|
||||||
@ -457,7 +453,6 @@ describe('Delete a User as admin', () => {
|
|||||||
await expect(neode.all('SocialMedia')).resolves.toHaveLength(1)
|
await expect(neode.all('SocialMedia')).resolves.toHaveLength(1)
|
||||||
await mutate({ mutation: deleteUserMutation, variables })
|
await mutate({ mutation: deleteUserMutation, variables })
|
||||||
await expect(neode.all('SocialMedia')).resolves.toHaveLength(0)
|
await expect(neode.all('SocialMedia')).resolves.toHaveLength(0)
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user