mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
36 lines
659 B
JavaScript
36 lines
659 B
JavaScript
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)
|
|
})
|
|
})
|
|
})
|