fix tests

This commit is contained in:
Ulf Gebhardt 2023-11-24 00:43:54 +01:00
parent 5985cd1fad
commit 9ea29c9455
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -8,14 +8,14 @@ describe('clickCounter', () => {
it('renders Button with a Counter of 0', () => { it('renders Button with a Counter of 0', () => {
expect(wrapper.find('.v-btn').exists()).toBeTruthy() expect(wrapper.find('.v-btn').exists()).toBeTruthy()
expect(wrapper.text()).toBe("$t('counter') 0") expect(wrapper.text()).toBe("$t('app.inc.text')")
}) })
it('has default Translation German', () => { it('has default Translation German', () => {
const $Backup = config.global.mocks.$t const $Backup = config.global.mocks.$t
config.global.mocks.$t = config.global.mocks.i18n$t config.global.mocks.$t = config.global.mocks.i18n$t
const wrapper = mount(ClickCounter) const wrapper = mount(ClickCounter)
expect(wrapper.text()).toBe('Zähler 0') expect(wrapper.text()).toBe('Erhöhe: 0')
config.global.mocks.$t = $Backup config.global.mocks.$t = $Backup
}) })
}) })