From f29d486da0627656f84ecc6ad18c04fcdf67f129 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Mon, 3 Feb 2020 20:10:44 +0100 Subject: [PATCH] replace ds-card in CommentForm --- webapp/components/CommentCard/CommentCard.spec.js | 4 ++-- webapp/components/CommentCard/CommentCard.vue | 2 +- webapp/components/CommentForm/CommentForm.vue | 10 ++++++---- webapp/components/CommentList/CommentList.spec.js | 4 ++-- webapp/pages/post/_id/_slug/index.vue | 6 +----- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/webapp/components/CommentCard/CommentCard.spec.js b/webapp/components/CommentCard/CommentCard.spec.js index 721120070..b18ab67c0 100644 --- a/webapp/components/CommentCard/CommentCard.spec.js +++ b/webapp/components/CommentCard/CommentCard.spec.js @@ -1,4 +1,4 @@ -import { config, shallowMount } from '@vue/test-utils' +import { config, mount } from '@vue/test-utils' import CommentCard from './CommentCard.vue' import Vuex from 'vuex' @@ -62,7 +62,7 @@ describe('CommentCard.vue', () => { const store = new Vuex.Store({ getters, }) - return shallowMount(CommentCard, { + return mount(CommentCard, { store, propsData, mocks, diff --git a/webapp/components/CommentCard/CommentCard.vue b/webapp/components/CommentCard/CommentCard.vue index e71ef29cc..573d1417b 100644 --- a/webapp/components/CommentCard/CommentCard.vue +++ b/webapp/components/CommentCard/CommentCard.vue @@ -46,7 +46,7 @@ circle size="small" v-scroll-to="'.editor'" - @click.prevent="reply" + @click="reply" /> diff --git a/webapp/components/CommentForm/CommentForm.vue b/webapp/components/CommentForm/CommentForm.vue index e0fe94b39..422530259 100644 --- a/webapp/components/CommentForm/CommentForm.vue +++ b/webapp/components/CommentForm/CommentForm.vue @@ -1,8 +1,7 @@ @@ -146,10 +145,13 @@ export default {