mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
chore: update name for HashtagsFilter
This commit is contained in:
parent
771fe49da6
commit
70bf870e4a
@ -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()
|
||||
|
||||
@ -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()
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user