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