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
describe('Logo.vue', () => {
let wrapper
let mocks
let mocks, propsData, wrapper
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
propsData = {
type: 'header',
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(Logo, { mocks, localVue })
return mount(Logo, { mocks, localVue, propsData })
}
beforeEach(() => {