Merge branch 'v2' of github.com:invertase/react-native-firebase into v2
This commit is contained in:
commit
02be8a0d84
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue