mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
40 lines
918 B
JavaScript
40 lines
918 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import RegisterSelectCommunity from './RegisterSelectCommunity'
|
|
|
|
const localVue = global.localVue
|
|
|
|
describe('RegisterSelectCommunity', () => {
|
|
let wrapper
|
|
|
|
const mocks = {
|
|
$i18n: {
|
|
locale: 'en',
|
|
},
|
|
$t: jest.fn((t) => t),
|
|
$store: {
|
|
state: {
|
|
community: {
|
|
name: 'Gradido Entwicklung',
|
|
url: 'http://localhost/vue/',
|
|
registerUrl: 'http://localhost/vue/register',
|
|
description: 'Die lokale Entwicklungsumgebung von Gradido.',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
const Wrapper = () => {
|
|
return mount(RegisterSelectCommunity, { localVue, mocks })
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders the Div Element "#register-select-community"', () => {
|
|
expect(wrapper.find('div#register-select-community').exists()).toBeTruthy()
|
|
})
|
|
})
|
|
})
|