mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
coverage moderation/index.spec.js
This commit is contained in:
parent
4c67348171
commit
1a42bbcf2a
31
webapp/pages/moderation/index.spec.js
Normal file
31
webapp/pages/moderation/index.spec.js
Normal file
@ -0,0 +1,31 @@
|
||||
import { config, mount } from '@vue/test-utils'
|
||||
import Moderation from './index.vue'
|
||||
|
||||
const localVue = global.localVue
|
||||
config.stubs['client-only'] = '<span><slot /></span>'
|
||||
|
||||
describe('moderation/index.vue', () => {
|
||||
let wrapper
|
||||
let mocks
|
||||
|
||||
beforeEach(() => {
|
||||
mocks = {
|
||||
$t: jest.fn()
|
||||
}
|
||||
})
|
||||
|
||||
describe('mount', () => {
|
||||
const Wrapper = () => {
|
||||
return mount(Moderation, { mocks, localVue })
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = Wrapper()
|
||||
})
|
||||
|
||||
it('renders', () => {
|
||||
expect(wrapper.is('.base-card')).toBe(true)
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user