Update frontend/src/pages/Community.spec.js

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
Hannes Heine 2022-07-25 11:39:41 +02:00 committed by GitHub
parent 5dd96310ae
commit 7aee2baf4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,9 +353,7 @@ describe('Community', () => {
apolloMutationMock.mockRejectedValue({
message: 'Oh my god!',
})
await wrapper
.findComponent({ name: 'ContributionForm' })
.vm.$emit('delete-contribution', 2)
contributionListComponent.vm.$emit('delete-contribution', { id: 2 })
})
it('toasts the error message', () => {