Ocelot-Social/webapp/pages/admin.spec.js
2023-02-13 20:29:16 +01:00

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')
})
})
})