mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
37 lines
581 B
JavaScript
37 lines
581 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import _id from './_id.vue'
|
|
|
|
const localVue = global.localVue
|
|
|
|
const stubs = {
|
|
'nuxt-child': true,
|
|
}
|
|
|
|
describe('Profile _id.vue', () => {
|
|
let wrapper
|
|
let Wrapper
|
|
let mocks
|
|
|
|
beforeEach(() => {
|
|
mocks = {}
|
|
})
|
|
|
|
describe('mount', () => {
|
|
Wrapper = () => {
|
|
return mount(_id, {
|
|
mocks,
|
|
localVue,
|
|
stubs,
|
|
})
|
|
}
|
|
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders', () => {
|
|
expect(wrapper.findComponent({ name: 'nuxt-child' }).exists()).toBe(true)
|
|
})
|
|
})
|
|
})
|