mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix test by setting value of the mocked hashtag
- The test wasnt testing anything as the hashtag value was defaulting to null - Fixed by setting value of hashtag to a string and then testing if the clearSearch works
This commit is contained in:
parent
3d419c1f21
commit
34ddd12948
@ -88,6 +88,8 @@ describe('PostIndex', () => {
|
||||
})
|
||||
|
||||
it('clears the search when the filter menu emits clearSearch', () => {
|
||||
mocks.$route.query.hashtag = '#samplehashtag'
|
||||
wrapper = Wrapper()
|
||||
wrapper.find(FilterMenu).vm.$emit('clearSearch')
|
||||
expect(wrapper.vm.hashtag).toBeNull()
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user