@@ -215,7 +215,7 @@ describe("Provision module", () => {
215
215
it ( "should build basic request with minimal options" , ( ) => {
216
216
const options : ProvisionFirebaseAppOptions = {
217
217
project : { displayName : PROJECT_DISPLAY_NAME } ,
218
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
218
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
219
219
} ;
220
220
221
221
const result = buildProvisionRequest ( options ) ;
@@ -233,7 +233,7 @@ describe("Provision module", () => {
233
233
displayName : PROJECT_DISPLAY_NAME ,
234
234
parent : { type : "existing_project" , projectId : "my-project-123" } ,
235
235
} ,
236
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
236
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
237
237
} ;
238
238
239
239
const result = buildProvisionRequest ( options ) ;
@@ -249,7 +249,7 @@ describe("Provision module", () => {
249
249
it ( "should include location when specified" , ( ) => {
250
250
const options : ProvisionFirebaseAppOptions = {
251
251
project : { displayName : PROJECT_DISPLAY_NAME } ,
252
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
252
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
253
253
features : { location : LOCATION } ,
254
254
} ;
255
255
@@ -266,7 +266,7 @@ describe("Provision module", () => {
266
266
it ( "should include requestId when specified" , ( ) => {
267
267
const options : ProvisionFirebaseAppOptions = {
268
268
project : { displayName : PROJECT_DISPLAY_NAME } ,
269
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
269
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
270
270
requestId : REQUEST_ID ,
271
271
} ;
272
272
@@ -288,6 +288,7 @@ describe("Provision module", () => {
288
288
bundleId : BUNDLE_ID ,
289
289
appStoreId : "12345" ,
290
290
teamId : "TEAM123" ,
291
+ displayName : PROJECT_DISPLAY_NAME ,
291
292
} ,
292
293
} ;
293
294
@@ -311,6 +312,7 @@ describe("Provision module", () => {
311
312
packageName : PACKAGE_NAME ,
312
313
sha1Hashes : [ "sha1hash1" , "sha1hash2" ] ,
313
314
sha256Hashes : [ "sha256hash1" ] ,
315
+ displayName : PROJECT_DISPLAY_NAME ,
314
316
} ,
315
317
} ;
316
318
@@ -329,7 +331,7 @@ describe("Provision module", () => {
329
331
it ( "should build Web-specific request correctly" , ( ) => {
330
332
const options : ProvisionFirebaseAppOptions = {
331
333
project : { displayName : PROJECT_DISPLAY_NAME } ,
332
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
334
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
333
335
} ;
334
336
335
337
const result = buildProvisionRequest ( options ) ;
@@ -345,7 +347,7 @@ describe("Provision module", () => {
345
347
const aiFeatures = { enableAiLogic : true , model : "gemini-pro" } ;
346
348
const options : ProvisionFirebaseAppOptions = {
347
349
project : { displayName : PROJECT_DISPLAY_NAME } ,
348
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
350
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
349
351
features : { firebaseAiLogicInput : aiFeatures } ,
350
352
} ;
351
353
@@ -411,7 +413,7 @@ describe("Provision module", () => {
411
413
it ( "should provision Web app successfully" , async ( ) => {
412
414
const options : ProvisionFirebaseAppOptions = {
413
415
project : { displayName : PROJECT_DISPLAY_NAME } ,
414
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
416
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
415
417
} ;
416
418
417
419
// Mock API call
@@ -434,7 +436,7 @@ describe("Provision module", () => {
434
436
displayName : PROJECT_DISPLAY_NAME ,
435
437
parent : { type : "existing_project" , projectId : "parent-project-123" } ,
436
438
} ,
437
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
439
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
438
440
} ;
439
441
440
442
// Mock API call with parent verification
@@ -459,7 +461,7 @@ describe("Provision module", () => {
459
461
displayName : PROJECT_DISPLAY_NAME ,
460
462
parent : { type : "organization" , organizationId : "987654321" } ,
461
463
} ,
462
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
464
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
463
465
} ;
464
466
465
467
// Mock API call with parent verification
@@ -484,7 +486,7 @@ describe("Provision module", () => {
484
486
displayName : PROJECT_DISPLAY_NAME ,
485
487
parent : { type : "folder" , folderId : "123456789" } ,
486
488
} ,
487
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
489
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
488
490
} ;
489
491
490
492
// Mock API call with parent verification
@@ -506,7 +508,7 @@ describe("Provision module", () => {
506
508
it ( "should provision with requestId for idempotency" , async ( ) => {
507
509
const options : ProvisionFirebaseAppOptions = {
508
510
project : { displayName : PROJECT_DISPLAY_NAME } ,
509
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
511
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
510
512
requestId : REQUEST_ID ,
511
513
} ;
512
514
@@ -529,7 +531,7 @@ describe("Provision module", () => {
529
531
it ( "should provision with custom location" , async ( ) => {
530
532
const options : ProvisionFirebaseAppOptions = {
531
533
project : { displayName : PROJECT_DISPLAY_NAME } ,
532
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
534
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
533
535
features : { location : LOCATION } ,
534
536
} ;
535
537
@@ -553,7 +555,7 @@ describe("Provision module", () => {
553
555
const aiFeatures = { enableAiLogic : true , model : "gemini-pro" } ;
554
556
const options : ProvisionFirebaseAppOptions = {
555
557
project : { displayName : PROJECT_DISPLAY_NAME } ,
556
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
558
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
557
559
features : { firebaseAiLogicInput : aiFeatures } ,
558
560
} ;
559
561
@@ -644,7 +646,7 @@ describe("Provision module", () => {
644
646
645
647
const baseOptions : ProvisionFirebaseAppOptions = {
646
648
project : { displayName : PROJECT_DISPLAY_NAME } ,
647
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
649
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
648
650
} ;
649
651
650
652
it ( "should work without requestId (undefined)" , async ( ) => {
@@ -770,7 +772,7 @@ describe("Provision module", () => {
770
772
describe ( "provisionFirebaseApp - Error Cases" , ( ) => {
771
773
const baseOptions : ProvisionFirebaseAppOptions = {
772
774
project : { displayName : PROJECT_DISPLAY_NAME } ,
773
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
775
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
774
776
} ;
775
777
776
778
it ( "should reject if API call fails with 404" , async ( ) => {
@@ -976,7 +978,7 @@ describe("Provision module", () => {
976
978
it ( "should require webAppId for Web apps" , async ( ) => {
977
979
const options : ProvisionFirebaseAppOptions = {
978
980
project : { displayName : PROJECT_DISPLAY_NAME } ,
979
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
981
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
980
982
} ;
981
983
982
984
// Mock API call to verify webAppId is included as appNamespace
@@ -1094,7 +1096,7 @@ describe("Provision module", () => {
1094
1096
1095
1097
const baseOptions : ProvisionFirebaseAppOptions = {
1096
1098
project : { displayName : PROJECT_DISPLAY_NAME } ,
1097
- app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID } ,
1099
+ app : { platform : AppPlatform . WEB , webAppId : WEB_APP_ID , displayName : PROJECT_DISPLAY_NAME } ,
1098
1100
} ;
1099
1101
1100
1102
it ( "should call correct API endpoint" , async ( ) => {
0 commit comments