got the test working

This commit is contained in:
Moriz Wahl 2021-10-07 15:36:40 +02:00
parent 2696a7eb5b
commit d8265b0c27
2 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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 })