mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
coverage blank.spec.js
This commit is contained in:
parent
256a4ed03e
commit
3484541a91
34
webapp/layouts/blank.spec.js
Normal file
34
webapp/layouts/blank.spec.js
Normal file
@ -0,0 +1,34 @@
|
||||
import { config, shallowMount } from '@vue/test-utils'
|
||||
import Blank from './blank.vue'
|
||||
|
||||
const localVue = global.localVue
|
||||
|
||||
config.stubs['nuxt'] = '<span><slot /></span>'
|
||||
|
||||
describe('blank.vue', () => {
|
||||
let wrapper
|
||||
let mocks
|
||||
|
||||
beforeEach(() => {
|
||||
mocks = {
|
||||
$t: jest.fn(),
|
||||
}
|
||||
})
|
||||
|
||||
describe('shallow mount', () => {
|
||||
const Wrapper = () => {
|
||||
return shallowMount(Blank, {
|
||||
mocks,
|
||||
localVue,
|
||||
})
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = Wrapper()
|
||||
})
|
||||
|
||||
it('renders', () => {
|
||||
expect(wrapper.is('.layout-blank')).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user