mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #1536 from Human-Connection/fix-test-set-up
Fix test by setting value of the mocked hashtag
This commit is contained in:
commit
f1b52c7b81
@ -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