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:
Wolfgang Huß 2019-09-09 17:17:44 +02:00 committed by GitHub
commit f1b52c7b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,8 @@ describe('PostIndex', () => {
}) })
it('clears the search when the filter menu emits clearSearch', () => { it('clears the search when the filter menu emits clearSearch', () => {
mocks.$route.query.hashtag = '#samplehashtag'
wrapper = Wrapper()
wrapper.find(FilterMenu).vm.$emit('clearSearch') wrapper.find(FilterMenu).vm.$emit('clearSearch')
expect(wrapper.vm.hashtag).toBeNull() expect(wrapper.vm.hashtag).toBeNull()
}) })