mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
33 lines
618 B
JavaScript
33 lines
618 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import CommunityMember from './CommunityMember'
|
|
|
|
const localVue = global.localVue
|
|
|
|
const mocks = {
|
|
$i18n: {
|
|
locale: 'en',
|
|
},
|
|
$t: jest.fn((t) => t),
|
|
}
|
|
|
|
const propsData = {
|
|
totalUsers: 123,
|
|
}
|
|
|
|
describe('CommunityMember', () => {
|
|
let wrapper
|
|
|
|
const Wrapper = () => {
|
|
return mount(CommunityMember, { localVue, mocks, propsData })
|
|
}
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('renders the component community-member', () => {
|
|
expect(wrapper.find('div.community-member').exists()).toBe(true)
|
|
})
|
|
})
|
|
})
|