mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +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 { mount } from '@vue/test-utils'
|
||||||
import FilterCard from './FilterCard.vue'
|
import HashtagsFilter from './HashtagsFilter.vue'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
describe('FilterCard.vue', () => {
|
describe('HashtagsFilter.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
let mocks
|
let mocks
|
||||||
let propsData
|
let propsData
|
||||||
@ -21,7 +21,7 @@ describe('FilterCard.vue', () => {
|
|||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(FilterCard, { mocks, localVue, propsData })
|
return mount(HashtagsFilter, { mocks, localVue, propsData })
|
||||||
}
|
}
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { config, shallowMount, mount } from '@vue/test-utils'
|
import { config, shallowMount, mount } from '@vue/test-utils'
|
||||||
import PostIndex from './index.vue'
|
import PostIndex from './index.vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
import FilterCard from '~/components/FilterCard/FilterCard'
|
import HashtagsFilter from '~/components/HashtagsFilter/HashtagsFilter'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ 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'
|
mocks.$route.query.hashtag = '#samplehashtag'
|
||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
wrapper.find(FilterCard).vm.$emit('clearSearch')
|
wrapper.find(HashtagsFilter).vm.$emit('clearSearch')
|
||||||
expect(wrapper.vm.hashtag).toBeNull()
|
expect(wrapper.vm.hashtag).toBeNull()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user