File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -358,10 +358,12 @@ describe('api/_performApiRequest', () => {
358
358
Endpoint . SIGN_UP ,
359
359
request
360
360
) ;
361
- await expect ( promise ) . to . be . rejectedWith (
362
- FirebaseError ,
363
- 'auth/network-request-failed'
364
- ) ;
361
+ await expect ( promise )
362
+ . to . be . rejectedWith ( FirebaseError , 'auth/network-request-failed' )
363
+ . eventually . with . nested . property (
364
+ 'customData.message' ,
365
+ 'Error: network error'
366
+ ) ;
365
367
} ) ;
366
368
} ) ;
367
369
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export async function _performFetchWithErrorHandling<V>(
183
183
}
184
184
// Changing this to a different error code will log user out when there is a network error
185
185
// because we treat any error other than NETWORK_REQUEST_FAILED as token is invalid.
186
- // https://github.com/firebase/firebase-js-sdk/blob/master /packages/auth/src/core/auth/auth_impl.ts#L309-L316
186
+ // https://github.com/firebase/firebase-js-sdk/blob/4fbc73610d70be4e0852e7de63a39cb7897e8546 /packages/auth/src/core/auth/auth_impl.ts#L309-L316
187
187
_fail ( auth , AuthErrorCode . NETWORK_REQUEST_FAILED , { 'message' : String ( e ) } ) ;
188
188
}
189
189
}
You can’t perform that action at this time.
0 commit comments