add spec for groups

This commit is contained in:
Moriz Wahl 2022-10-26 16:05:44 +02:00
parent b183485237
commit 1cc663ed34
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,35 @@
import { config, mount } from '@vue/test-utils'
import groups from './groups.vue'
const localVue = global.localVue
config.stubs['nuxt-link'] = '<span class="nuxt-link"><slot /></span>'
config.stubs['client-only'] = '<span class="client-only"><slot /></span>'
describe('groups', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(groups, {
mocks,
localVue,
})
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.is('div')).toBe(true)
})
})
})

View File

@ -67,7 +67,7 @@ const tabToFilterMapping = (tab) => {
}
export default {
name: 'MyGroups',
name: 'Groups',
components: {
GroupList,
TabNavigation,