Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Nov 23, 2023
1 parent 5985cd1 commit 9ea29c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ClickCounter.delete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ describe('clickCounter', () => {

it('renders Button with a Counter of 0', () => {
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', () => {
const $Backup = config.global.mocks.$t
config.global.mocks.$t = config.global.mocks.i18n$t
const wrapper = mount(ClickCounter)
expect(wrapper.text()).toBe('Zähler 0')
expect(wrapper.text()).toBe('Erhöhe: 0')
config.global.mocks.$t = $Backup
})
})

0 comments on commit 9ea29c9

Please sign in to comment.