mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
set CONFIG in specs
This commit is contained in:
parent
dd876c52fa
commit
beacad4a17
@ -3,6 +3,7 @@ import Factory, { cleanDatabase } from '../../db/factories'
|
||||
import { createGroupMutation, groupQuery } from '../../db/graphql/groups'
|
||||
import { getNeode, getDriver } from '../../db/neo4j'
|
||||
import createServer from '../../server'
|
||||
import CONFIG from '../../config'
|
||||
|
||||
const driver = getDriver()
|
||||
const neode = getNeode()
|
||||
@ -291,6 +292,10 @@ describe('CreateGroup', () => {
|
||||
})
|
||||
|
||||
describe('categories', () => {
|
||||
beforeEach(() => {
|
||||
CONFIG.CATEGORIES_ACTIVE = true
|
||||
})
|
||||
|
||||
describe('not even one', () => {
|
||||
it('throws error: "Too view categories!"', async () => {
|
||||
const { errors } = await mutate({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user