@@ -164,13 +164,13 @@ describe('Firebase Storage > Reference', () => {
164
164
describe ( 'list' , ( ) => {
165
165
it ( 'throws on invalid maxResults' , ( ) => {
166
166
const child = service . refFromURL ( 'gs://test-bucket/hello' ) ;
167
- expect ( child . list ( { maxResults : 0 } ) ) . to . throw (
167
+ expect ( ( ) => child . list ( { maxResults : 0 } ) ) . to . throw (
168
168
'storage/invalid-argument'
169
169
) ;
170
- expect ( child . list ( { maxResults : - 4 } ) ) . to . throw (
170
+ expect ( ( ) => child . list ( { maxResults : - 4 } ) ) . to . throw (
171
171
'storage/invalid-argument'
172
172
) ;
173
- expect ( child . list ( { maxResults : 1001 } ) ) . to . throw (
173
+ expect ( ( ) => child . list ( { maxResults : 1001 } ) ) . to . throw (
174
174
'storage/invalid-argument'
175
175
) ;
176
176
} ) ;
@@ -196,15 +196,19 @@ describe('Firebase Storage > Reference', () => {
196
196
expect ( ( ) => root . delete ( ) ) . to . throw ( 'storage/invalid-root-operation' ) ;
197
197
} ) ;
198
198
it ( 'getMetadata throws' , ( ) => {
199
- expect ( root . getMetadata ( ) ) . to . throw ( 'storage/invalid-root-operation' ) ;
199
+ expect ( ( ) => root . getMetadata ( ) ) . to . throw (
200
+ 'storage/invalid-root-operation'
201
+ ) ;
200
202
} ) ;
201
203
it ( 'updateMetadata throws' , ( ) => {
202
- expect ( root . updateMetadata ( { } ) ) . to . throw (
204
+ expect ( ( ) => root . updateMetadata ( { } ) ) . to . throw (
203
205
'storage/invalid-root-operation'
204
206
) ;
205
207
} ) ;
206
208
it ( 'getDownloadURL throws' , async ( ) => {
207
- expect ( root . getDownloadURL ( ) ) . to . throw ( 'storage/invalid-root-operation' ) ;
209
+ expect ( ( ) => root . getDownloadURL ( ) ) . to . throw (
210
+ 'storage/invalid-root-operation'
211
+ ) ;
208
212
} ) ;
209
213
} ) ;
210
214
} ) ;
0 commit comments