mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
got the test working
This commit is contained in:
parent
2696a7eb5b
commit
d8265b0c27
@ -13,7 +13,7 @@ describe('CommunityResolver', () => {
|
|||||||
|
|
||||||
const getCommunityInfoQuery = `
|
const getCommunityInfoQuery = `
|
||||||
query {
|
query {
|
||||||
getCommunityInfo() {
|
getCommunityInfo {
|
||||||
name
|
name
|
||||||
description
|
description
|
||||||
url
|
url
|
||||||
@ -24,7 +24,7 @@ describe('CommunityResolver', () => {
|
|||||||
|
|
||||||
describe('getCommunityInfo', () => {
|
describe('getCommunityInfo', () => {
|
||||||
it('returns the default values', async () => {
|
it('returns the default values', async () => {
|
||||||
await expect(query({ query: getCommunityInfoQuery })).resolves.toMatchObject({
|
expect(query({ query: getCommunityInfoQuery })).resolves.toMatchObject({
|
||||||
data: {
|
data: {
|
||||||
getCommunityInfo: {
|
getCommunityInfo: {
|
||||||
name: 'Gradido Entwicklung',
|
name: 'Gradido Entwicklung',
|
||||||
|
|||||||
@ -19,7 +19,7 @@ const createTestServer = async () => {
|
|||||||
const apollo = new ApolloServer({
|
const apollo = new ApolloServer({
|
||||||
schema: await schema(),
|
schema: await schema(),
|
||||||
playground: CONFIG.GRAPHIQL,
|
playground: CONFIG.GRAPHIQL,
|
||||||
context,
|
// context,
|
||||||
plugins,
|
plugins,
|
||||||
})
|
})
|
||||||
apollo.applyMiddleware({ app: server })
|
apollo.applyMiddleware({ app: server })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user