mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
lint fixes
This commit is contained in:
parent
26bbf175a4
commit
7e16b8e72c
@ -1,9 +1,6 @@
|
|||||||
import Vue from 'vue'
|
|
||||||
import { config, mount } from '@vue/test-utils'
|
import { config, mount } from '@vue/test-utils'
|
||||||
import InviteButton from './InviteButton.vue'
|
import InviteButton from './InviteButton.vue'
|
||||||
|
|
||||||
const localVue = global.localVue
|
|
||||||
|
|
||||||
config.stubs['v-popover'] = '<span><slot /></span>'
|
config.stubs['v-popover'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('InviteButton.vue', () => {
|
describe('InviteButton.vue', () => {
|
||||||
|
|||||||
@ -2,21 +2,24 @@ import { config, mount } from '@vue/test-utils'
|
|||||||
import _id from './_id.vue'
|
import _id from './_id.vue'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
|
config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
|
||||||
|
|
||||||
describe('profile/_id.vue', () => {
|
describe('Profile _id.vue', () => {
|
||||||
let wrapper
|
let wrapper
|
||||||
|
let Wrapper
|
||||||
let mocks
|
let mocks
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mocks = {
|
mocks = {}
|
||||||
$t: jest.fn(),
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
const Wrapper = () => {
|
Wrapper = () => {
|
||||||
return mount(_id, { mocks, localVue })
|
return mount(_id, {
|
||||||
|
mocks,
|
||||||
|
localVue,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user