add test for ContributionForm.vue

This commit is contained in:
ogerly 2022-07-12 10:03:51 +02:00
parent 5a4a713c25
commit f93351dcdd

View File

@ -0,0 +1,29 @@
import { mount } from '@vue/test-utils'
import ContributionForm from './ContributionForm.vue'
const localVue = global.localVue
describe('ContributionForm', () => {
let wrapper
const mocks = {
$t: jest.fn((t) => t),
}
const Wrapper = () => {
return mount(ContributionForm, {
localVue,
mocks,
})
}
describe('mount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
it('has a DIV .contribution-form', () => {
expect(wrapper.find('div.contribution-form').exists()).toBe(true)
})
})
})