mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
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:
parent
084a5172e9
commit
d513fec7fe
@ -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')
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user