mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
31 lines
573 B
JavaScript
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()
|
|
})
|
|
})
|
|
})
|