mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix test of logo component
This commit is contained in:
parent
c6e9aec85a
commit
29be05e7ff
@ -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(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user