fixed test swap

This commit is contained in:
Ulf Gebhardt 2021-04-25 19:10:31 +02:00
parent 51dc5375a0
commit 72ce38ddae
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 35 additions and 3 deletions

View File

@ -1,9 +1,9 @@
import { mount } from '@vue/test-utils'
import moderation from './moderation.vue'
import admin from './admin.vue'
const localVue = global.localVue
describe('moderation.vue', () => {
describe('admin.vue', () => {
let wrapper
let mocks
@ -15,7 +15,7 @@ describe('moderation.vue', () => {
describe('mount', () => {
const Wrapper = () => {
return mount(moderation, {
return mount(admin, {
mocks,
localVue,
})

View File

@ -0,0 +1,32 @@
import { mount } from '@vue/test-utils'
import moderation from './moderation.vue'
const localVue = global.localVue
describe('moderation.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('div')).toBe(true)
})
})
})