Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonNekoGH committed Feb 23, 2025
1 parent 9ad5e7f commit d4b1413
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/stage-tamagotchi/src/main/locales/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('createI18n', () => {

it('should return key if the key is not found', () => {
const { t } = createI18n()
// @ts-expect-error for test
expect(t('menu.not.found')).toBe('menu.not.found')
})

Expand All @@ -21,7 +22,7 @@ describe('createI18n', () => {

it('should return the correct locale in array', () => {
const { t } = createI18n()
expect(t('quitDialog.buttons.0')).toBe('Quit')
expect(t('quitDialog.buttons.1')).toBe('Cancel')
expect(t('quitDialog.buttons.quit')).toBe('Quit')
expect(t('quitDialog.buttons.cancel')).toBe('Cancel')
})
})

0 comments on commit d4b1413

Please sign in to comment.