Ocelot-Social/webapp/layouts/blank.spec.js
2023-02-15 11:19:29 +01:00

40 lines
630 B
JavaScript

import { shallowMount } from '@vue/test-utils'
import Blank from './blank.vue'
const localVue = global.localVue
const stubs = {
nuxt: {
template: '<span><slot /></span>',
},
}
describe('blank.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('shallow mount', () => {
const Wrapper = () => {
return shallowMount(Blank, {
mocks,
localVue,
stubs,
})
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.classes('layout-blank')).toBe(true)
})
})
})