mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
coverage Logo.spec.js
This commit is contained in:
parent
920094e85a
commit
e1b218311b
31
webapp/components/Logo/Logo.spec.js
Normal file
31
webapp/components/Logo/Logo.spec.js
Normal file
@ -0,0 +1,31 @@
|
||||
import { config, mount } from '@vue/test-utils'
|
||||
import Logo from './Logo.vue'
|
||||
|
||||
const localVue = global.localVue
|
||||
// config.stubs['client-only'] = '<span><slot /></span>'
|
||||
|
||||
describe('Logo.vue', () => {
|
||||
let wrapper
|
||||
let mocks
|
||||
|
||||
beforeEach(() => {
|
||||
mocks = {
|
||||
$t: jest.fn()
|
||||
}
|
||||
})
|
||||
|
||||
describe('mount', () => {
|
||||
const Wrapper = () => {
|
||||
return mount(Logo, { mocks, localVue })
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = Wrapper()
|
||||
})
|
||||
|
||||
it('renders', () => {
|
||||
expect(wrapper.findAll('.ds-logo')).toHaveLength(1)
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user