[auth] Add language code tests

This commit is contained in:
Elliot Hesp 2018-01-06 15:14:49 +00:00
parent 9ea0a5cc7f
commit a8896bc9b8
1 changed files with 12 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); 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 !== 'en') {
throw new Error('Expected language code to be "fr".');
}
firebase.native.auth().languageCode = 'en';
});
}); });
} }