diff --git a/backend/src/graphql/resolver/ContributionResolver.test.ts b/backend/src/graphql/resolver/ContributionResolver.test.ts index ac5280757..01e9b123e 100644 --- a/backend/src/graphql/resolver/ContributionResolver.test.ts +++ b/backend/src/graphql/resolver/ContributionResolver.test.ts @@ -110,7 +110,10 @@ describe('ContributionResolver', () => { ).resolves.toEqual( expect.objectContaining({ data: { - createContribution: true, + createContribution: { + amount: '100', + memo: 'Test env contribution', + }, }, }), ) diff --git a/backend/src/seeds/graphql/mutations.ts b/backend/src/seeds/graphql/mutations.ts index 5383398b1..4926f706f 100644 --- a/backend/src/seeds/graphql/mutations.ts +++ b/backend/src/seeds/graphql/mutations.ts @@ -233,6 +233,9 @@ export const deleteContributionLink = gql` export const createContribution = gql` mutation ($amount: Decimal!, $memo: String!, $creationDate: String!) { - createContribution(amount: $amount, memo: $memo, creationDate: $creationDate) + createContribution(amount: $amount, memo: $memo, creationDate: $creationDate) { + amount + memo + } } `