mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
36 lines
605 B
JavaScript
36 lines
605 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import Overview from './Overview'
|
|
|
|
const localVue = global.localVue
|
|
|
|
window.scrollTo = jest.fn()
|
|
|
|
describe('Overview', () => {
|
|
let wrapper
|
|
|
|
const mocks = {
|
|
$t: jest.fn((t) => t),
|
|
$n: jest.fn(),
|
|
$i18n: {
|
|
locale: 'en',
|
|
},
|
|
}
|
|
|
|
const Wrapper = () => {
|
|
return mount(Overview, {
|
|
localVue,
|
|
mocks,
|
|
})
|
|
}
|
|
|
|
describe('mount', () => {
|
|
beforeEach(() => {
|
|
wrapper = Wrapper()
|
|
})
|
|
|
|
it('has a community news element', () => {
|
|
expect(wrapper.find('div.community-news').exists()).toBeTruthy()
|
|
})
|
|
})
|
|
})
|