From 38eec0fc5f0061256e9a388b9e20732d93ca3267 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Wed, 22 Jan 2020 17:43:25 +0300 Subject: [PATCH] rename Comment to CommentCard --- .../Comment.spec.js => CommentCard/CommentCard.spec.js} | 6 +++--- .../Comment.story.js => CommentCard/CommentCard.story.js} | 8 ++++---- .../{Comment/Comment.vue => CommentCard/CommentCard.vue} | 6 +++--- webapp/components/CommentList/CommentList.vue | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) rename webapp/components/{Comment/Comment.spec.js => CommentCard/CommentCard.spec.js} (97%) rename webapp/components/{Comment/Comment.story.js => CommentCard/CommentCard.story.js} (92%) rename webapp/components/{Comment/Comment.vue => CommentCard/CommentCard.vue} (97%) diff --git a/webapp/components/Comment/Comment.spec.js b/webapp/components/CommentCard/CommentCard.spec.js similarity index 97% rename from webapp/components/Comment/Comment.spec.js rename to webapp/components/CommentCard/CommentCard.spec.js index 14b0dd7ec..f8047f092 100644 --- a/webapp/components/Comment/Comment.spec.js +++ b/webapp/components/CommentCard/CommentCard.spec.js @@ -1,12 +1,12 @@ import { config, shallowMount } from '@vue/test-utils' -import Comment from './Comment.vue' +import CommentCard from './CommentCard.vue' import Vuex from 'vuex' const localVue = global.localVue config.stubs['client-only'] = '' -describe('Comment.vue', () => { +describe('CommentCard.vue', () => { let propsData let mocks let getters @@ -61,7 +61,7 @@ describe('Comment.vue', () => { const store = new Vuex.Store({ getters, }) - return shallowMount(Comment, { + return shallowMount(CommentCard, { store, propsData, mocks, diff --git a/webapp/components/Comment/Comment.story.js b/webapp/components/CommentCard/CommentCard.story.js similarity index 92% rename from webapp/components/Comment/Comment.story.js rename to webapp/components/CommentCard/CommentCard.story.js index 291b6cb11..1749999f3 100644 --- a/webapp/components/Comment/Comment.story.js +++ b/webapp/components/CommentCard/CommentCard.story.js @@ -1,6 +1,6 @@ import { storiesOf } from '@storybook/vue' import { withA11y } from '@storybook/addon-a11y' -import Comment from './Comment' +import CommentCard from './CommentCard' import helpers from '~/storybook/helpers' helpers.init() @@ -41,14 +41,14 @@ const comment = { __typename: 'Comment', } -storiesOf('Comment', module) +storiesOf('CommentCard', module) .addDecorator(withA11y) .addDecorator(helpers.layout) .add('Basic comment', () => ({ - components: { Comment }, + components: { CommentCard }, store: helpers.store, data: () => ({ comment, }), - template: ``, + template: ``, })) diff --git a/webapp/components/Comment/Comment.vue b/webapp/components/CommentCard/CommentCard.vue similarity index 97% rename from webapp/components/Comment/Comment.vue rename to webapp/components/CommentCard/CommentCard.vue index df1320837..bb54214b2 100644 --- a/webapp/components/Comment/Comment.vue +++ b/webapp/components/CommentCard/CommentCard.vue @@ -1,5 +1,5 @@