Skip to content

Commit

Permalink
test: check global properties of i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Aug 26, 2024
1 parent 6fcad1b commit ffcec3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/specs/core/I18nMixin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ describe('I18nMixin', () => {
expect(core.i18n.global.locale).toBe('de')
})

it('should use "de" in global property', () => {
expect(core.vue.config.globalProperties.$i18n.locale).toBe('de')
})

it('should have "de" messages', () => {
expect(core.hasI18Locale('de')).toBeTruthy()
})
Expand Down

0 comments on commit ffcec3b

Please sign in to comment.