mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Withdrew import of the LanguageSwitch component instead search for the component name.
This commit is contained in:
parent
29b8e362e2
commit
0cb58912e9
@ -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()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user