[test] Fix iOS auth test

This commit is contained in:
Chris Bianca 2017-06-16 16:54:54 +01:00
parent 0e27d7345e
commit 5795e08f2c
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ function authTests({ tryCatch, describe, it, firebase }) {
linkedUser.should.be.an.Object(); linkedUser.should.be.an.Object();
linkedUser.uid.should.be.a.String(); linkedUser.uid.should.be.a.String();
linkedUser.toJSON().should.be.an.Object(); linkedUser.toJSON().should.be.an.Object();
linkedUser.toJSON().email.should.eql(email); // iOS and Android are inconsistent in returning lowercase / mixed case
linkedUser.toJSON().email.toLowerCase().should.eql(email.toLowerCase());
linkedUser.isAnonymous.should.equal(false); linkedUser.isAnonymous.should.equal(false);
linkedUser.providerId.should.equal('firebase'); linkedUser.providerId.should.equal('firebase');
return firebase.native.auth().signOut(); return firebase.native.auth().signOut();