mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Move 'Group' resolver to building up mode in 'groups.spec.js'
This commit is contained in:
parent
cd090420cf
commit
47027ad86b
@ -204,8 +204,18 @@ describe('in mode', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('building up – clean db after each resolver', () => {
|
||||
describe('Group', () => {
|
||||
beforeAll(async () => {
|
||||
await seedBasicsAndClearAuthentication()
|
||||
})
|
||||
|
||||
afterAll(async () => {
|
||||
await cleanDatabase()
|
||||
})
|
||||
|
||||
describe('unauthenticated', () => {
|
||||
it('throws authorization error', async () => {
|
||||
const { errors } = await query({ query: groupQuery, variables: {} })
|
||||
@ -216,7 +226,7 @@ describe('in mode', () => {
|
||||
describe('authenticated', () => {
|
||||
let otherUser
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeAll(async () => {
|
||||
otherUser = await Factory.build(
|
||||
'user',
|
||||
{
|
||||
@ -319,9 +329,7 @@ describe('in mode', () => {
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('building up – clean db after each resolver', () => {
|
||||
describe('JoinGroup', () => {
|
||||
beforeAll(async () => {
|
||||
await seedBasicsAndClearAuthentication()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user