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 InviteButton from './InviteButton.vue'
const localVue = global.localVue
config.stubs['v-popover'] = '<span><slot /></span>'
describe('InviteButton.vue', () => {
@ -42,14 +39,14 @@ describe('InviteButton.vue', () => {
})
it('invite codes not available', async () => {
wrapper.find('.base-button').trigger('click') //open popup
wrapper.find('.invite-button').trigger('click') //click copy button
wrapper.find('.base-button').trigger('click') // open popup
wrapper.find('.invite-button').trigger('click') // click copy button
expect(mocks.$t).toHaveBeenCalledWith('invite-codes.not-available')
})
it.skip('invite codes copied to clipboard', async () => {
wrapper.find('.base-button').trigger('click') //open popup
wrapper.find('.invite-button').trigger('click') //click copy button
wrapper.find('.base-button').trigger('click') // open popup
wrapper.find('.invite-button').trigger('click') // click copy button
expect(mocks.$t).toHaveBeenCalledWith('invite-codes.not-available')
})
})

View File

@ -2,21 +2,24 @@ import { config, mount } from '@vue/test-utils'
import _id from './_id.vue'
const localVue = global.localVue
config.stubs['nuxt-child'] = '<span class="nuxt-child"><slot /></span>'
describe('profile/_id.vue', () => {
describe('Profile _id.vue', () => {
let wrapper
let Wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
}
mocks = {}
})
describe('mount', () => {
const Wrapper = () => {
return mount(_id, { mocks, localVue })
Wrapper = () => {
return mount(_id, {
mocks,
localVue,
})
}
beforeEach(() => {