File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -358,10 +358,12 @@ describe('api/_performApiRequest', () => {
358358 Endpoint . SIGN_UP ,
359359 request
360360 ) ;
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+ ) ;
365367 } ) ;
366368 } ) ;
367369
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export async function _performFetchWithErrorHandling<V>(
183183 }
184184 // Changing this to a different error code will log user out when there is a network error
185185 // 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
187187 _fail ( auth , AuthErrorCode . NETWORK_REQUEST_FAILED , { 'message' : String ( e ) } ) ;
188188 }
189189}
You can’t perform that action at this time.
0 commit comments