Fix backend test

This commit is contained in:
Wolfgang Huß 2021-09-16 13:59:58 +02:00
parent ec9c35a7c4
commit af8b7ba367

View File

@ -9,8 +9,8 @@ const instance = getNeode()
const driver = getDriver()
const updateDonationsMutation = gql`
mutation ($goal: Int, $progress: Int) {
UpdateDonations(goal: $goal, progress: $progress) {
mutation ($showDonations: Boolean, $goal: Int, $progress: Int) {
UpdateDonations(showDonations: $showDonations, goal: $goal, progress: $progress) {
id
showDonations
goal
@ -88,7 +88,8 @@ describe('donations', () => {
it('returns the current Donations info', async () => {
await expect(query({ query: donationsQuery, variables })).resolves.toMatchObject({
data: { Donations: [{ showDonations: true, goal: 15000, progress: 0 }] },
data: { Donations: { showDonations: true, goal: 15000, progress: 0 } },
errors: undefined,
})
})
})