chore: update name for HashtagsFilter

This commit is contained in:
mattwr18 2020-03-20 18:17:13 +01:00
parent 771fe49da6
commit 70bf870e4a
2 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
import { mount } from '@vue/test-utils'
import FilterCard from './FilterCard.vue'
import HashtagsFilter from './HashtagsFilter.vue'
const localVue = global.localVue
describe('FilterCard.vue', () => {
describe('HashtagsFilter.vue', () => {
let wrapper
let mocks
let propsData
@ -21,7 +21,7 @@ describe('FilterCard.vue', () => {
describe('mount', () => {
const Wrapper = () => {
return mount(FilterCard, { mocks, localVue, propsData })
return mount(HashtagsFilter, { mocks, localVue, propsData })
}
beforeEach(() => {
wrapper = Wrapper()

View File

@ -1,7 +1,7 @@
import { config, shallowMount, mount } from '@vue/test-utils'
import PostIndex from './index.vue'
import Vuex from 'vuex'
import FilterCard from '~/components/FilterCard/FilterCard'
import HashtagsFilter from '~/components/HashtagsFilter/HashtagsFilter'
const localVue = global.localVue
@ -106,7 +106,7 @@ describe('PostIndex', () => {
it('clears the search when the filter menu emits clearSearch', () => {
mocks.$route.query.hashtag = '#samplehashtag'
wrapper = Wrapper()
wrapper.find(FilterCard).vm.$emit('clearSearch')
wrapper.find(HashtagsFilter).vm.$emit('clearSearch')
expect(wrapper.vm.hashtag).toBeNull()
})