mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
38 lines
569 B
JavaScript
38 lines
569 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import admin from './admin.vue'
|
|
|
|
const stubs = {
|
|
'nuxt-child': true,
|
|
}
|
|
|
|
const localVue = global.localVue
|
|
|
|
describe('admin.vue', () => {
|
|
let wrapper
|
|
let mocks
|
|
|
|
beforeEach(() => {
|
|
mocks = {
|
|
$t: jest.fn(),
|
|
}
|
|
})
|
|
|
|
describe('mount', () => {
|
|
const Wrapper = () => {
|
|
return mount(admin, {
|
|
mocks,
|
|
localVue,
|
|
stubs,
|
|
})
|
|
}
|
|
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders', () => {
|
|
expect(wrapper.element.tagName).toBe('DIV')
|
|
})
|
|
})
|
|
})
|