mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix client-only warning
This commit is contained in:
parent
9241305d43
commit
9b2175786e
@ -1,10 +1,12 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { config, mount } from '@vue/test-utils'
|
||||||
|
|
||||||
import LocaleSwitch from './LocaleSwitch.vue'
|
import LocaleSwitch from './LocaleSwitch.vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
|
|
||||||
|
config.stubs['client-only'] = '<span><slot /></span>'
|
||||||
|
|
||||||
describe('LocaleSwitch.vue', () => {
|
describe('LocaleSwitch.vue', () => {
|
||||||
let wrapper, mocks, computed, deutschLanguageItem, getters
|
let wrapper, mocks, computed, deutschLanguageItem, getters
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user