Fix test - getLanguages is a Promise<Array<string>>
This commit is contained in:
parent
5b1a37aefc
commit
01c728ab90
|
@ -3,5 +3,5 @@
|
||||||
import I18nJs from 'i18n-js';
|
import I18nJs from 'i18n-js';
|
||||||
|
|
||||||
I18nJs.locale = 'en'; // a locale from your available translations
|
I18nJs.locale = 'en'; // a locale from your available translations
|
||||||
export const getLanguages = () => Promise.resolve('en');
|
export const getLanguages = () => Promise.resolve(['en']);
|
||||||
export default I18nJs;
|
export default I18nJs;
|
||||||
|
|
Loading…
Reference in New Issue