coverage moderation/index.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-25 14:43:33 +02:00
parent 4c67348171
commit 1a42bbcf2a
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View 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)
})
})
})