diff --git a/apps/stage-tamagotchi/src/main/locales/index.test.ts b/apps/stage-tamagotchi/src/main/locales/index.test.ts index 21b8304..c916ca7 100644 --- a/apps/stage-tamagotchi/src/main/locales/index.test.ts +++ b/apps/stage-tamagotchi/src/main/locales/index.test.ts @@ -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') }) @@ -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') }) })