mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
* fix(admin): update test files predeploy * fix(admin): update test files predeploy * fix(admin): update test files predeploy
34 lines
621 B
JavaScript
34 lines
621 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import { describe, it, expect, beforeEach, vi } from 'vitest'
|
|
import GddSend from './GddSend'
|
|
|
|
describe('GddSend', () => {
|
|
let wrapper
|
|
|
|
const mocks = {
|
|
$t: vi.fn((t) => t),
|
|
$i18n: {
|
|
locale: vi.fn(() => 'en'),
|
|
},
|
|
$n: vi.fn((n) => String(n)),
|
|
}
|
|
|
|
const Wrapper = () => {
|
|
return mount(GddSend, {
|
|
global: {
|
|
mocks,
|
|
},
|
|
})
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders the component', () => {
|
|
expect(wrapper.find('div.gdd-send').exists()).toBe(true)
|
|
})
|
|
})
|
|
})
|