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
|
||||
|
||||
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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user