From 7aee2baf4deb6354a07e2148981269530c8de043 Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Mon, 25 Jul 2022 11:39:41 +0200 Subject: [PATCH] Update frontend/src/pages/Community.spec.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Wolfgang Huß --- frontend/src/pages/Community.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/pages/Community.spec.js b/frontend/src/pages/Community.spec.js index 828e86a6d..d834ddac1 100644 --- a/frontend/src/pages/Community.spec.js +++ b/frontend/src/pages/Community.spec.js @@ -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', () => {