mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fixed test swap
This commit is contained in:
parent
51dc5375a0
commit
72ce38ddae
@ -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,
|
||||
})
|
||||
|
||||
32
webapp/pages/moderation.spec.js
Normal file
32
webapp/pages/moderation.spec.js
Normal 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)
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user