@@ -103,9 +103,6 @@ describe('Tenant', () => {
103103 emailPrivacyConfig : {
104104 enableImprovedEmailPrivacy : true ,
105105 } ,
106- mobileLinksConfig : {
107- domain : 'HOSTING_DOMAIN'
108- } ,
109106 } ;
110107
111108 const clientRequest : UpdateTenantRequest = {
@@ -135,9 +132,6 @@ describe('Tenant', () => {
135132 emailPrivacyConfig : {
136133 enableImprovedEmailPrivacy : true ,
137134 } ,
138- mobileLinksConfig : {
139- domain : 'HOSTING_DOMAIN'
140- } ,
141135 } ;
142136
143137 const serverRequestWithoutMfa : TenantServerResponse = {
@@ -149,9 +143,6 @@ describe('Tenant', () => {
149143 emailPrivacyConfig : {
150144 enableImprovedEmailPrivacy : true ,
151145 } ,
152- mobileLinksConfig : {
153- domain : 'HOSTING_DOMAIN'
154- } ,
155146 } ;
156147
157148 const clientRequestWithoutMfa : UpdateTenantRequest = {
@@ -164,9 +155,6 @@ describe('Tenant', () => {
164155 emailPrivacyConfig : {
165156 enableImprovedEmailPrivacy : true ,
166157 } ,
167- mobileLinksConfig : {
168- domain : 'HOSTING_DOMAIN'
169- } ,
170158 } ;
171159
172160 const clientRequestWithRecaptcha : UpdateTenantRequest = {
@@ -231,9 +219,6 @@ describe('Tenant', () => {
231219 emailPrivacyConfig : {
232220 enableImprovedEmailPrivacy : true ,
233221 } ,
234- mobileLinksConfig : {
235- domain : 'HOSTING_DOMAIN'
236- } ,
237222 } ;
238223
239224 describe ( 'buildServerRequest()' , ( ) => {
@@ -599,22 +584,6 @@ describe('Tenant', () => {
599584 } ) . to . throw ( '"EmailPrivacyConfig.enableImprovedEmailPrivacy" must be a valid boolean value.' ) ;
600585 } ) ;
601586
602- it ( 'should throw on invalid MobileLinksConfig attribute' , ( ) => {
603- const tenantOptionsClientRequest = deepCopy ( clientRequest ) as any ;
604- tenantOptionsClientRequest . mobileLinksConfig . invalidParameter = 'invalid' ;
605- expect ( ( ) => {
606- Tenant . buildServerRequest ( tenantOptionsClientRequest , ! createRequest ) ;
607- } ) . to . throw ( '"invalidParameter" is not a valid "MobileLinksConfig" parameter.' ) ;
608- } ) ;
609-
610- it ( 'should throw on invalid domain attribute' , ( ) => {
611- const tenantOptionsClientRequest = deepCopy ( clientRequest ) as any ;
612- tenantOptionsClientRequest . mobileLinksConfig . domain = 'random domain' ;
613- expect ( ( ) => {
614- Tenant . buildServerRequest ( tenantOptionsClientRequest , ! createRequest ) ;
615- } ) . to . throw ( '"MobileLinksConfig.domain" must be either "HOSTING_DOMAIN" or "FIREBASE_DYNAMIC_LINK_DOMAIN".' ) ;
616- } ) ;
617-
618587 it ( 'should not throw on valid client request object' , ( ) => {
619588 const tenantOptionsClientRequest = deepCopy ( clientRequestWithRecaptcha ) ;
620589 expect ( ( ) => {
@@ -1010,22 +979,6 @@ describe('Tenant', () => {
1010979 } ) . to . throw ( '"EmailPrivacyConfig.enableImprovedEmailPrivacy" must be a valid boolean value.' ) ;
1011980 } ) ;
1012981
1013- it ( 'should throw on invalid MobileLinksConfig attribute' , ( ) => {
1014- const tenantOptionsClientRequest = deepCopy ( clientRequest ) as any ;
1015- tenantOptionsClientRequest . mobileLinksConfig . invalidParameter = 'invalid' ;
1016- expect ( ( ) => {
1017- Tenant . buildServerRequest ( tenantOptionsClientRequest , createRequest ) ;
1018- } ) . to . throw ( '"invalidParameter" is not a valid "MobileLinksConfig" parameter.' ) ;
1019- } ) ;
1020-
1021- it ( 'should throw on invalid domain attribute' , ( ) => {
1022- const tenantOptionsClientRequest = deepCopy ( clientRequest ) as any ;
1023- tenantOptionsClientRequest . mobileLinksConfig . domain = 'random domain' ;
1024- expect ( ( ) => {
1025- Tenant . buildServerRequest ( tenantOptionsClientRequest , createRequest ) ;
1026- } ) . to . throw ( '"MobileLinksConfig.domain" must be either "HOSTING_DOMAIN" or "FIREBASE_DYNAMIC_LINK_DOMAIN".' ) ;
1027- } ) ;
1028-
1029982 const nonObjects = [ null , NaN , 0 , 1 , true , false , '' , 'a' , [ ] , [ 1 , 'a' ] , _ . noop ] ;
1030983 nonObjects . forEach ( ( request ) => {
1031984 it ( 'should throw on invalid CreateTenantRequest:' + JSON . stringify ( request ) , ( ) => {
@@ -1145,13 +1098,6 @@ describe('Tenant', () => {
11451098 deepCopy ( clientRequest . passwordPolicyConfig ) ) ;
11461099 } ) ;
11471100
1148- it ( 'should set readonly property mobileLinksConfig' , ( ) => {
1149- const expectedMobileLinksConfig = {
1150- domain : 'HOSTING_DOMAIN' ,
1151- } ;
1152- expect ( clientRequest . mobileLinksConfig ) . to . deep . equal ( expectedMobileLinksConfig ) ;
1153- } ) ;
1154-
11551101 it ( 'should set readonly property emailPrivacyConfig' , ( ) => {
11561102 const expectedEmailPrivacyConfig = {
11571103 enableImprovedEmailPrivacy : true ,
@@ -1201,7 +1147,6 @@ describe('Tenant', () => {
12011147 recaptchaConfig : deepCopy ( serverResponseWithRecaptcha . recaptchaConfig ) ,
12021148 passwordPolicyConfig : deepCopy ( clientRequest . passwordPolicyConfig ) ,
12031149 emailPrivacyConfig : deepCopy ( clientRequest . emailPrivacyConfig ) ,
1204- mobileLinksConfig : deepCopy ( clientRequest . mobileLinksConfig ) ,
12051150 } ) ;
12061151 } ) ;
12071152
@@ -1213,7 +1158,6 @@ describe('Tenant', () => {
12131158 delete serverRequestCopyWithoutMfa . recaptchaConfig ;
12141159 delete serverRequestCopyWithoutMfa . passwordPolicyConfig ;
12151160 delete serverRequestCopyWithoutMfa . emailPrivacyConfig ;
1216- delete serverRequestCopyWithoutMfa . mobileLinksConfig ;
12171161 expect ( new Tenant ( serverRequestCopyWithoutMfa ) . toJSON ( ) ) . to . deep . equal ( {
12181162 tenantId : 'TENANT-ID' ,
12191163 displayName : 'TENANT-DISPLAY-NAME' ,
0 commit comments