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 = `
|
||||
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',
|
||||
|
||||
@ -19,7 +19,7 @@ const createTestServer = async () => {
|
||||
const apollo = new ApolloServer({
|
||||
schema: await schema(),
|
||||
playground: CONFIG.GRAPHIQL,
|
||||
context,
|
||||
// context,
|
||||
plugins,
|
||||
})
|
||||
apollo.applyMiddleware({ app: server })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user