diff --git a/components/Comment.spec.js b/components/Comment.spec.js index 2efdc800b..e76585e72 100644 --- a/components/Comment.spec.js +++ b/components/Comment.spec.js @@ -42,6 +42,7 @@ describe('Comment.vue', () => { describe('given a comment', () => { beforeEach(() => { propsData.comment = { + id: '2', contentExcerpt: 'Hello I am a comment content' } }) @@ -77,6 +78,11 @@ describe('Comment.vue', () => { const wrapper = Wrapper() expect(wrapper.text()).toMatch('comment content') }) + + it('visually distinguishable', () => { + const wrapper = Wrapper() + expect(wrapper.classes()).toContain('disabled-content') + }) }) }) }) diff --git a/components/Comment.vue b/components/Comment.vue index 799c32e64..ef801acab 100644 --- a/components/Comment.vue +++ b/components/Comment.vue @@ -1,6 +1,6 @@