lint fixes

This commit is contained in:
Ulf Gebhardt 2021-04-25 19:02:52 +02:00
parent 26bbf175a4
commit 7e16b8e72c
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 13 additions and 13 deletions

View File

@ -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', () => {

View File

@ -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(() => {