coverage blank.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-26 00:34:44 +02:00
parent 256a4ed03e
commit 3484541a91
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -0,0 +1,34 @@
import { config, shallowMount } from '@vue/test-utils'
import Blank from './blank.vue'
const localVue = global.localVue
config.stubs['nuxt'] = '<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,
})
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.is('.layout-blank')).toBe(true)
})
})
})