mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change mutation to query amount and memo, check in test that amount and memo have the right values.
This commit is contained in:
parent
70b22f3dbe
commit
ba88599ca7
@ -110,7 +110,10 @@ describe('ContributionResolver', () => {
|
||||
).resolves.toEqual(
|
||||
expect.objectContaining({
|
||||
data: {
|
||||
createContribution: true,
|
||||
createContribution: {
|
||||
amount: '100',
|
||||
memo: 'Test env contribution',
|
||||
},
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user