mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 03:59:18 +08:00
Merge pull request #655 from invertase/auth-language
Set auth language #654
This commit is contained in:
@@ -356,6 +356,18 @@ function authTests({ tryCatch, describe, it, firebase }) {
|
||||
return firebase.native.auth().signOut().then(successCb).catch(failureCb);
|
||||
});
|
||||
});
|
||||
|
||||
it('it should change the language code', () => {
|
||||
firebase.native.auth().languageCode = 'en';
|
||||
if (firebase.native.auth().languageCode !== 'en') {
|
||||
throw new Error('Expected language code to be "en".');
|
||||
}
|
||||
firebase.native.auth().languageCode = 'fr';
|
||||
if (firebase.native.auth().languageCode !== 'fr') {
|
||||
throw new Error('Expected language code to be "fr".');
|
||||
}
|
||||
firebase.native.auth().languageCode = 'en';
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user