mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
confirming two contributions at once does not throw anymore
This commit is contained in:
parent
9537910413
commit
cb55da5d32
@ -1961,8 +1961,7 @@ describe('ContributionResolver', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// In the futrue this should not throw anymore
|
it('throws no error for the second confirmation', async () => {
|
||||||
it('throws an error for the second confirmation', async () => {
|
|
||||||
const r1 = mutate({
|
const r1 = mutate({
|
||||||
mutation: confirmContribution,
|
mutation: confirmContribution,
|
||||||
variables: {
|
variables: {
|
||||||
@ -1982,8 +1981,7 @@ describe('ContributionResolver', () => {
|
|||||||
)
|
)
|
||||||
await expect(r2).resolves.toEqual(
|
await expect(r2).resolves.toEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
// data: { confirmContribution: true },
|
data: { confirmContribution: true },
|
||||||
errors: [new GraphQLError('Creation was not successful.')],
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user