2023-02-13 23:08:41 +01:00

34 lines
564 B
JavaScript

import { mount } from '@vue/test-utils'
import Moderation from './index.vue'
const localVue = global.localVue
const stubs = {
'client-only': true,
}
describe('moderation/index.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(Moderation, { mocks, localVue, stubs })
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.classes('base-card')).toBe(true)
})
})
})