coverage post/edit/_id.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-25 16:33:35 +02:00
parent 196fbe0864
commit 43c1c268ca
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -0,0 +1,30 @@
import { config, mount } from '@vue/test-utils'
import _id from './_id.vue'
const localVue = global.localVue
// config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
describe('post/_id.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(_id, { mocks, localVue })
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.findAll('.contribution-form')).toHaveLength(1)
})
})
})