Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodra committed Dec 18, 2023
1 parent f7e59b2 commit ceaaa6d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/i18n/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import messages from './index';

describe('messages', () => {
it('contains app messages', () => {
expect(messages.length).toEqual(2);
const appMessages = messages[1];
const languages = Object.getOwnPropertyNames(appMessages);
expect(languages).toContainEqual('ar');
expect(languages).toContainEqual('es-419');
expect(languages).toContainEqual('fr');
expect(languages).toContainEqual('zh-cn');
expect(languages).toContainEqual('pt');
expect(languages).toContainEqual('it');
expect(languages).toContainEqual('de');
expect(languages).toContainEqual('hi');
expect(languages).toContainEqual('fr-ca');
expect(languages).toContainEqual('ru');
expect(languages).toContainEqual('uk');
expect(languages).toContainEqual('de-de');
expect(languages).toContainEqual('it-it');
expect(languages).toContainEqual('pt-pt');
});
});

0 comments on commit ceaaa6d

Please sign in to comment.