Withdrew import of the LanguageSwitch component instead search for the component name.

This commit is contained in:
elweyn 2022-01-12 10:07:49 +01:00
parent 29b8e362e2
commit 0cb58912e9

View File

@ -1,6 +1,5 @@
import { mount } from '@vue/test-utils'
import AuthLayoutGdd from './AuthLayout_gdd'
import LanguageSwitch from '../../components/LanguageSwitch'
const localVue = global.localVue
@ -51,7 +50,7 @@ describe('AuthLayoutGdd', () => {
})
it('has LanguageSwitch', () => {
expect(wrapper.findComponent(LanguageSwitch).exists()).toBeTruthy()
expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeTruthy()
})
describe('check LanguageSwitch on register page', () => {
@ -61,7 +60,7 @@ describe('AuthLayoutGdd', () => {
})
it('has not LanguageSwitch', () => {
expect(wrapper.findComponent(LanguageSwitch).exists()).toBeFalsy()
expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeFalsy()
})
})
})