@@ -442,16 +442,20 @@ testSuite({
442
442
assertArrayEquals ( [ ] , warningLogMessages ) ;
443
443
444
444
// Phone config with blacklisted reCAPTCHA parameters.
445
- const blacklist = {
445
+ const disallowlist = {
446
446
'sitekey' : 'SITEKEY' ,
447
447
'tabindex' : 0 ,
448
448
'callback' : function ( token ) { } ,
449
449
'expired-callback' : function ( ) { } ,
450
450
} ;
451
451
config . update (
452
- 'signInOptions' ,
453
- [ 'github.com' , { 'provider' : 'google.com' } ,
454
- { 'provider' : 'phone' , 'recaptchaParameters' : blacklist } , 'password' ] ) ;
452
+ 'signInOptions' ,
453
+ [ 'github.com' , { 'provider' : 'google.com' } ,
454
+ {
455
+ 'provider' : 'phone' ,
456
+ 'recaptchaParameters' : disallowlist
457
+ } ,
458
+ 'password' ] ) ;
455
459
assertObjectEquals ( { } , config . getRecaptchaParameters ( ) ) ;
456
460
// Expected warning should be logged.
457
461
assertArrayEquals (
@@ -958,7 +962,7 @@ testSuite({
958
962
} ,
959
963
960
964
testUpdateConfig_phoneSignInOption_error ( ) {
961
- // Tests when both whitelist and blacklist are provided.
965
+ // Tests when both allowlist and disallowlist are provided.
962
966
let error = assertThrows ( ( ) => {
963
967
config . update ( 'signInOptions' , [ {
964
968
'provider' : 'phone' ,
@@ -969,7 +973,7 @@ testSuite({
969
973
assertEquals (
970
974
'Both whitelistedCountries and blacklistedCountries are provided.' ,
971
975
error . message ) ;
972
- // Tests when empty whitelist is provided.
976
+ // Tests when empty allowlist is provided.
973
977
error = assertThrows ( ( ) => {
974
978
config . update ( 'signInOptions' , [ {
975
979
'provider' : 'phone' ,
@@ -1022,7 +1026,7 @@ testSuite({
1022
1026
} ,
1023
1027
1024
1028
testSetConfig_phoneSignInOption_error ( ) {
1025
- // Tests when both whitelist and blacklist are provided.
1029
+ // Tests when both allowlist and disallowlist are provided.
1026
1030
let error = assertThrows ( ( ) => {
1027
1031
config . setConfig ( {
1028
1032
'signInOptions' : [ {
@@ -1035,7 +1039,7 @@ testSuite({
1035
1039
assertEquals (
1036
1040
'Both whitelistedCountries and blacklistedCountries are provided.' ,
1037
1041
error . message ) ;
1038
- // Tests when empty whitelist is provided.
1042
+ // Tests when empty allowlist is provided.
1039
1043
error = assertThrows ( ( ) => {
1040
1044
config . setConfig ( {
1041
1045
'signInOptions' : [ {
0 commit comments