Merge branch 'v2' of github.com:invertase/react-native-firebase into v2

This commit is contained in:
Elliot Hesp 2017-06-19 09:38:47 +01:00
commit 02be8a0d84
2 changed files with 4 additions and 3 deletions

View File

@ -217,7 +217,7 @@ export default class Messaging extends Base {
data.finish();
}
}
);
).remove;
}
/**
@ -226,7 +226,7 @@ export default class Messaging extends Base {
* @returns {*}
*/
onTokenRefresh(listener: Function) {
return FirebaseMessagingEvt.addListener(EVENT_TYPE.RefreshToken, listener);
return FirebaseMessagingEvt.addListener(EVENT_TYPE.RefreshToken, listener).remove;
}
/**

View File

@ -54,7 +54,8 @@ function authTests({ tryCatch, describe, it, firebase }) {
linkedUser.should.be.an.Object();
linkedUser.uid.should.be.a.String();
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.providerId.should.equal('firebase');
return firebase.native.auth().signOut();