@@ -322,13 +322,13 @@ describe('Firebase Storage > Reference', () => {
322
322
describe ( 'Argument verification' , ( ) => {
323
323
describe ( 'list' , ( ) => {
324
324
it ( 'throws on invalid maxResults' , async ( ) => {
325
- await expect ( list ( child , { maxResults : 0 } ) ) . to . be . rejectedWith (
325
+ expect ( ( ) => list ( child , { maxResults : 0 } ) ) . to . throw (
326
326
'storage/invalid-argument'
327
327
) ;
328
- await expect ( list ( child , { maxResults : - 4 } ) ) . to . be . rejectedWith (
328
+ expect ( ( ) => list ( child , { maxResults : - 4 } ) ) . to . throw (
329
329
'storage/invalid-argument'
330
330
) ;
331
- await expect ( list ( child , { maxResults : 1001 } ) ) . to . be . rejectedWith (
331
+ expect ( ( ) => list ( child , { maxResults : 1001 } ) ) . to . throw (
332
332
'storage/invalid-argument'
333
333
) ;
334
334
} ) ;
@@ -352,22 +352,22 @@ describe('Firebase Storage > Reference', () => {
352
352
) ;
353
353
} ) ;
354
354
it ( 'deleteObject throws' , async ( ) => {
355
- await expect ( deleteObject ( root ) ) . to . be . rejectedWith (
355
+ expect ( ( ) => deleteObject ( root ) ) . to . throw (
356
356
'storage/invalid-root-operation'
357
357
) ;
358
358
} ) ;
359
359
it ( 'getMetadata throws' , async ( ) => {
360
- await expect ( getMetadata ( root ) ) . to . be . rejectedWith (
360
+ expect ( ( ) => getMetadata ( root ) ) . to . throw (
361
361
'storage/invalid-root-operation'
362
362
) ;
363
363
} ) ;
364
364
it ( 'updateMetadata throws' , async ( ) => {
365
- await expect ( updateMetadata ( root , { } as Metadata ) ) . to . be . rejectedWith (
365
+ expect ( ( ) => updateMetadata ( root , { } as Metadata ) ) . to . throw (
366
366
'storage/invalid-root-operation'
367
367
) ;
368
368
} ) ;
369
369
it ( 'getDownloadURL throws' , async ( ) => {
370
- await expect ( getDownloadURL ( root ) ) . to . be . rejectedWith (
370
+ expect ( ( ) => getDownloadURL ( root ) ) . to . throw (
371
371
'storage/invalid-root-operation'
372
372
) ;
373
373
} ) ;
0 commit comments