File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,9 @@ describe('api/_performApiRequest', () => {
383
383
) ;
384
384
assert . fail ( 'Call should have failed' ) ;
385
385
} catch ( e ) {
386
- expect ( ( e as FirebaseError ) . code ) . to . eq ( `auth/${ AuthErrorCode . NEED_CONFIRMATION } ` ) ;
386
+ expect ( ( e as FirebaseError ) . code ) . to . eq (
387
+ `auth/${ AuthErrorCode . NEED_CONFIRMATION } `
388
+ ) ;
387
389
expect ( ( e as FirebaseError ) . customData ! . _tokenResponse ) . to . eql ( {
388
390
needConfirmation : true ,
389
391
idToken : 'id-token'
@@ -413,7 +415,9 @@ describe('api/_performApiRequest', () => {
413
415
) ;
414
416
assert . fail ( 'Call should have failed' ) ;
415
417
} catch ( e ) {
416
- expect ( ( e as FirebaseError ) . code ) . to . eq ( `auth/${ AuthErrorCode . CREDENTIAL_ALREADY_IN_USE } ` ) ;
418
+ expect ( ( e as FirebaseError ) . code ) . to . eq (
419
+ `auth/${ AuthErrorCode . CREDENTIAL_ALREADY_IN_USE } `
420
+ ) ;
417
421
expect ( ( e as FirebaseError ) . customData ! . _tokenResponse ) . to . eql (
418
422
response
419
423
) ;
@@ -444,7 +448,9 @@ describe('api/_performApiRequest', () => {
444
448
) ;
445
449
assert . fail ( 'Call should have failed' ) ;
446
450
} catch ( e ) {
447
- expect ( ( e as FirebaseError ) . code ) . to . eq ( `auth/${ AuthErrorCode . EMAIL_EXISTS } ` ) ;
451
+ expect ( ( e as FirebaseError ) . code ) . to . eq (
452
+ `auth/${ AuthErrorCode . EMAIL_EXISTS } `
453
+ ) ;
448
454
expect ( ( e as FirebaseError ) . customData ! . email ) . to . eq ( '[email protected] ' ) ;
449
455
expect ( ( e as FirebaseError ) . customData ! . phoneNumber ) . to . eq (
450
456
'+1555-this-is-a-number'
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ let fetchImpl: typeof fetch | null;
34
34
const routes = new Map < string , Route > ( ) ;
35
35
36
36
// Using a constant rather than a function to enforce the type matches fetch()
37
- const fakeFetch : typeof fetch = ( input : RequestInfo | URL , request ?: RequestInit ) => {
37
+ const fakeFetch : typeof fetch = (
38
+ input : RequestInfo | URL ,
39
+ request ?: RequestInit
40
+ ) => {
38
41
if ( typeof input !== 'string' ) {
39
42
throw new Error ( 'URL passed to fetch was not a string' ) ;
40
43
}
You can’t perform that action at this time.
0 commit comments