mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test fix for CommunityMember.vue
This commit is contained in:
parent
8adb7d9b54
commit
544509446a
@ -0,0 +1,32 @@
|
||||
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 transaction-slot-send', () => {
|
||||
expect(wrapper.find('div.community-member').exists()).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="community-member">
|
||||
<div class="text-center">
|
||||
<b-badge class="position-absolute mt--2 ml--5 px-3" variant="success">
|
||||
{{ $t('member') }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user