From 01c728ab907329058ad29b456a2e6eb3ee2cacb2 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Wed, 30 Aug 2017 00:28:05 +0200 Subject: [PATCH] Fix test - getLanguages is a Promise> --- example/src/__mocks__/react-native-i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/__mocks__/react-native-i18n.js b/example/src/__mocks__/react-native-i18n.js index a19c3b8..3c25f56 100644 --- a/example/src/__mocks__/react-native-i18n.js +++ b/example/src/__mocks__/react-native-i18n.js @@ -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;