From c8227670a43edd4747ca1dbd0871edda1aa03ad9 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 9 Nov 2022 19:58:47 +0100 Subject: [PATCH] fix test over 95% --- .../src/components/ContributionLink/ContributionLink.spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/src/components/ContributionLink/ContributionLink.spec.js b/admin/src/components/ContributionLink/ContributionLink.spec.js index 9818e8b93..b72a0347c 100644 --- a/admin/src/components/ContributionLink/ContributionLink.spec.js +++ b/admin/src/components/ContributionLink/ContributionLink.spec.js @@ -46,5 +46,10 @@ describe('ContributionLink', () => { wrapper.vm.editContributionLinkData() expect(wrapper.vm.$root.$emit('bv::toggle::collapse', 'newContribution')).toBeTruthy() }) + + it('emits toggle::collapse close Contribution-Form ', async () => { + wrapper.vm.closeContributionForm() + expect(wrapper.vm.$root.$emit('bv::toggle::collapse', 'newContribution')).toBeTruthy() + }) }) })