Merge pull request #1476 from oblador/updatePhoneNumber

[auth] Support updatePhoneNumber
This commit is contained in:
Michael Diarmid
2018-09-16 13:12:36 +01:00
committed by GitHub
5 changed files with 144 additions and 31 deletions

View File

@@ -461,18 +461,6 @@ describe('auth().currentUser', () => {
});
});
describe('updatePhoneNumber()', () => {
it('should throw an unsupported error', async () => {
await firebase.auth().signInAnonymouslyAndRetrieveData();
(() => {
firebase.auth().currentUser.updatePhoneNumber();
}).should.throw(
'User.updatePhoneNumber() is unsupported by the native Firebase SDKs.'
);
await firebase.auth().signOut();
});
});
describe('refreshToken', () => {
it('should throw an unsupported error', async () => {
await firebase.auth().signInAnonymouslyAndRetrieveData();