Skip to content

Commit

Permalink
Fix test - getLanguages is a Promise<Array<string>>
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Aug 29, 2017
1 parent 5b1a37a commit 01c728a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/__mocks__/react-native-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import I18nJs from 'i18n-js';

I18nJs.locale = 'en'; // a locale from your available translations
export const getLanguages = () => Promise.resolve('en');
export const getLanguages = () => Promise.resolve(['en']);
export default I18nJs;

0 comments on commit 01c728a

Please sign in to comment.