@@ -191,8 +191,11 @@ describe('storage() -> StorageReference', function () {
191
191
metadata . generation . should . be . a . String ( ) ;
192
192
metadata . fullPath . should . equal ( `${ PATH } /list/file1.txt` ) ;
193
193
if ( device . getPlatform ( ) === 'android' ) {
194
- // FIXME - iOS on emulator this is fullPath not name ?
195
194
metadata . name . should . equal ( 'file1.txt' ) ;
195
+ } else {
196
+ // FIXME on ios file comes through as fully-qualified
197
+ // https://github.com/firebase/firebase-ios-sdk/issues/9849#issuecomment-1159819958
198
+ metadata . name . should . equal ( `${ PATH } /list/file1.txt` ) ;
196
199
}
197
200
metadata . size . should . be . a . Number ( ) ;
198
201
should . equal ( metadata . size > 0 , true ) ;
@@ -204,6 +207,8 @@ describe('storage() -> StorageReference', function () {
204
207
metadata . bucket . should . equal ( `${ firebase . app ( ) . options . projectId } .appspot.com` ) ;
205
208
metadata . metageneration . should . be . a . String ( ) ;
206
209
metadata . md5Hash . should . be . a . String ( ) ;
210
+ // TODO against cloud storage cacheControl comes back null/undefined by default. Emulator has a difference
211
+ // https://github.com/firebase/firebase-tools/issues/3398#issuecomment-1159821364
207
212
should . equal ( metadata . cacheControl , 'public, max-age=3600' ) ;
208
213
should . equal ( metadata . contentLanguage , null ) ;
209
214
should . equal ( metadata . customMetadata , null ) ;
@@ -370,10 +375,10 @@ describe('storage() -> StorageReference', function () {
370
375
metadata . generation . should . be . a . String ( ) ;
371
376
metadata . fullPath . should . equal ( `${ PATH } /list/file1.txt` ) ;
372
377
if ( device . getPlatform ( ) === 'android' ) {
373
- // FIXME on android file comes through as fully-qualified
374
- // TODO log issue with firebase-tools repository
375
378
metadata . name . should . equal ( 'file1.txt' ) ;
376
379
} else {
380
+ // FIXME on ios file comes through as fully-qualified
381
+ // https://github.com/firebase/firebase-ios-sdk/issues/9849#issuecomment-1159819958
377
382
metadata . name . should . equal ( `${ PATH } /list/file1.txt` ) ;
378
383
}
379
384
metadata . size . should . be . a . Number ( ) ;
@@ -409,10 +414,10 @@ describe('storage() -> StorageReference', function () {
409
414
metadata . generation . should . be . a . String ( ) ;
410
415
metadata . fullPath . should . equal ( `${ PATH } /list/file1.txt` ) ;
411
416
if ( device . getPlatform ( ) === 'android' ) {
412
- // FIXME on android file comes through as fully-qualified
413
- // TODO log issue with firebase-tools repository
414
417
metadata . name . should . equal ( 'file1.txt' ) ;
415
418
} else {
419
+ // FIXME on ios file comes through as fully-qualified
420
+ // https://github.com/firebase/firebase-ios-sdk/issues/9849#issuecomment-1159819958
416
421
metadata . name . should . equal ( `${ PATH } /list/file1.txt` ) ;
417
422
}
418
423
metadata . size . should . be . a . Number ( ) ;
@@ -425,7 +430,7 @@ describe('storage() -> StorageReference', function () {
425
430
426
431
// Things that we may set (or remove)
427
432
// FIXME for storage emulator values are not cleared. Works against cloud
428
- // TODO log issue with firebase-tools repository
433
+ // https://github.com/ firebase/firebase -tools/issues/3398#issuecomment-1159821364
429
434
// should.equal(metadata.cacheControl, undefined); // fails on android against storage emulator
430
435
// should.equal(metadata.contentDisposition, undefined); // fails on android against storage emulator
431
436
// should.equal(metadata.contentEncoding, 'identity'); // fails on android against storage emulator
0 commit comments