mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
fix tests
This commit is contained in:
parent
5985cd1fad
commit
9ea29c9455
@ -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
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user