Merge pull request #655 from invertase/auth-language

Set auth language #654
This commit is contained in:
Michael Diarmid
2018-01-17 15:23:41 +00:00
committed by GitHub
6 changed files with 137 additions and 0 deletions

View File

@@ -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';
});
});
}