coverage settings.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-25 19:53:03 +02:00
parent 57f074dacd
commit 02c3e0a763
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -0,0 +1,34 @@
import { config, mount } from '@vue/test-utils'
import settings from './settings.vue'
const localVue = global.localVue
config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
describe('settings.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(settings, {
mocks,
localVue,
})
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.is('div')).toBe(true)
})
})
})