@@ -134,7 +134,10 @@ describe('RestClient', () => {
134
134
135
135
await expect ( fetchPromise )
136
136
. to . eventually . be . rejectedWith ( FirebaseError , firebaseError . message )
137
- . with . property ( 'originalErrorMessage' , 'Network request failed' ) ;
137
+ . with . nested . property (
138
+ 'customData.originalErrorMessage' ,
139
+ 'Network request failed'
140
+ ) ;
138
141
} ) ;
139
142
140
143
it ( 'throws on JSON parse failure' , async ( ) => {
@@ -154,7 +157,10 @@ describe('RestClient', () => {
154
157
155
158
await expect ( fetchPromise )
156
159
. to . eventually . be . rejectedWith ( FirebaseError , firebaseError . message )
157
- . with . property ( 'originalErrorMessage' , 'Unexpected end of input' ) ;
160
+ . with . nested . property (
161
+ 'customData.originalErrorMessage' ,
162
+ 'Unexpected end of input'
163
+ ) ;
158
164
} ) ;
159
165
160
166
it ( 'handles 304 status code and empty body' , async ( ) => {
@@ -200,7 +206,7 @@ describe('RestClient', () => {
200
206
201
207
await expect ( fetchPromise )
202
208
. to . eventually . be . rejectedWith ( FirebaseError , error . message )
203
- . with . property ( 'httpStatus' , 500 ) ;
209
+ . with . nested . property ( 'customData. httpStatus' , 500 ) ;
204
210
} ) ;
205
211
206
212
it ( 'normalizes NO_CHANGE state to 304 status' , async ( ) => {
@@ -257,7 +263,7 @@ describe('RestClient', () => {
257
263
258
264
await expect ( fetchPromise )
259
265
. to . eventually . be . rejectedWith ( FirebaseError , error . message )
260
- . with . property ( 'httpStatus' , status ) ;
266
+ . with . nested . property ( 'customData. httpStatus' , status ) ;
261
267
}
262
268
} ) ;
263
269
} ) ;
0 commit comments