mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
28 lines
585 B
JavaScript
28 lines
585 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import SearchHeading from './SearchHeading.vue'
|
|
|
|
const localVue = global.localVue
|
|
|
|
describe('SearchHeading.vue', () => {
|
|
let mocks, wrapper, propsData
|
|
beforeEach(() => {
|
|
mocks = {
|
|
$t: jest.fn(string => string),
|
|
}
|
|
propsData = {
|
|
resourceType: 'Post',
|
|
}
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
const Wrapper = () => {
|
|
return mount(SearchHeading, { mocks, localVue, propsData })
|
|
}
|
|
|
|
describe('mount', () => {
|
|
it('renders heading', () => {
|
|
expect(wrapper.text()).toMatch('search.heading.Post')
|
|
})
|
|
})
|
|
})
|