Added test comment that is disabled and changes the test name so that we see that the test checks the comment count to ignore disabled and deleted comments.

This commit is contained in:
Hannes Heine 2020-08-06 16:12:36 +02:00
parent 084a5172e9
commit d513fec7fe

View File

@ -35,6 +35,13 @@ describe('CommentList.vue', () => {
deleted: true,
author: { id: 'some-user' },
},
{
id: 'comment136',
contentExcerpt: 'this is a disabled comment',
content: 'this is a disabled comment',
disabled: true,
author: { id: 'some-user' },
},
],
},
}
@ -77,7 +84,7 @@ describe('CommentList.vue', () => {
})
}
it('displays a comments counter', () => {
it('displays a comments counter that ignores disabled and deleted comments', () => {
wrapper = Wrapper()
expect(wrapper.find('.count').text()).toEqual('1')
})