mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 19:57:51 +08:00
-
This commit is contained in:
@@ -52,9 +52,9 @@ public class ReactNativeFirebaseAdMobConsentModule extends ReactNativeFirebaseMo
|
||||
|
||||
private int getConsentStatusInt(ConsentStatus consentStatus) {
|
||||
switch (consentStatus) {
|
||||
case PERSONALIZED:
|
||||
return 1;
|
||||
case NON_PERSONALIZED:
|
||||
return 1;
|
||||
case PERSONALIZED:
|
||||
return 2;
|
||||
case UNKNOWN:
|
||||
default:
|
||||
|
||||
@@ -149,7 +149,7 @@ describe('admob() InterstitialAd', () => {
|
||||
|
||||
spy.getCall(0).args[0].should.eql('error');
|
||||
const e = spy.getCall(0).args[1];
|
||||
e.code.should.containEql('invalid-request');
|
||||
e.code.should.containEql('admob/'); // android/ios different errors
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -39,7 +39,6 @@ describe('admob() RewardedAd', () => {
|
||||
RewardedAd.createForAdRequest('123', 123);
|
||||
return Promise.reject(new Error('Did not throw Error.'));
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
return Promise.resolve();
|
||||
}
|
||||
});
|
||||
@@ -154,7 +153,7 @@ describe('admob() RewardedAd', () => {
|
||||
|
||||
spy.getCall(0).args[0].should.eql('error');
|
||||
const e = spy.getCall(0).args[1];
|
||||
e.code.should.containEql('invalid-request');
|
||||
e.code.should.containEql('admob/'); // android/ios different errors
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user