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 = `
query {
getCommunityInfo() {
getCommunityInfo {
name
description
url
@ -24,7 +24,7 @@ describe('CommunityResolver', () => {
describe('getCommunityInfo', () => {
it('returns the default values', async () => {
await expect(query({ query: getCommunityInfoQuery })).resolves.toMatchObject({
expect(query({ query: getCommunityInfoQuery })).resolves.toMatchObject({
data: {
getCommunityInfo: {
name: 'Gradido Entwicklung',

View File

@ -19,7 +19,7 @@ const createTestServer = async () => {
const apollo = new ApolloServer({
schema: await schema(),
playground: CONFIG.GRAPHIQL,
context,
// context,
plugins,
})
apollo.applyMiddleware({ app: server })