gradido/frontend/src/components/GddSend.spec.js
2022-03-07 19:34:35 +01:00

31 lines
573 B
JavaScript

import { mount } from '@vue/test-utils'
import GddSend from './GddSend'
const localVue = global.localVue
describe('GddSend', () => {
let wrapper
const mocks = {
$t: jest.fn((t) => t),
$i18n: {
locale: jest.fn(() => 'en'),
},
$n: jest.fn((n) => String(n)),
}
const Wrapper = () => {
return mount(GddSend, { localVue, mocks })
}
describe('mount', () => {
beforeEach(() => {
wrapper = Wrapper()
})
it('renders the component', () => {
expect(wrapper.find('div.gdd-send').exists()).toBeTruthy()
})
})
})