Fix test of logo component

This commit is contained in:
Wolfgang Huß 2021-05-18 19:37:34 +02:00
parent c6e9aec85a
commit 29be05e7ff

View File

@ -4,18 +4,20 @@ import Logo from './Logo.vue'
const localVue = global.localVue const localVue = global.localVue
describe('Logo.vue', () => { describe('Logo.vue', () => {
let wrapper let mocks, propsData, wrapper
let mocks
beforeEach(() => { beforeEach(() => {
mocks = { mocks = {
$t: jest.fn(), $t: jest.fn(),
} }
propsData = {
type: 'header',
}
}) })
describe('mount', () => { describe('mount', () => {
const Wrapper = () => { const Wrapper = () => {
return mount(Logo, { mocks, localVue }) return mount(Logo, { mocks, localVue, propsData })
} }
beforeEach(() => { beforeEach(() => {