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 @@