cra-template-rb
Version:
The official React Boilerplate template for Create React App
17 lines (14 loc) • 409 B
text/typescript
import { translations } from 'locales/translations';
import { i18n } from '../i18n';
describe('i18n', () => {
it('should initiate i18n', async () => {
const t = await i18n;
expect(t).toBeDefined();
});
it('should initiate i18n with translations', async () => {
const t = await i18n;
expect(t(translations.feedbackFeature.description).length).toBeGreaterThan(
0,
);
});
});