File tree 3 files changed +12
-14
lines changed
packages-exp/auth-exp/src
3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -123,23 +123,21 @@ describe('api/_performApiRequest', () => {
123
123
it ( 'should translate server success with errorMessage into auth error' , async ( ) => {
124
124
const response = {
125
125
errorMessage : ServerError . FEDERATED_USER_ID_ALREADY_LINKED ,
126
- idToken : 'foo-bar' ,
126
+ idToken : 'foo-bar'
127
127
} ;
128
- const mock = mockEndpoint (
129
- Endpoint . SIGN_IN_WITH_IDP ,
130
- response ,
131
- 200
132
- ) ;
128
+ const mock = mockEndpoint ( Endpoint . SIGN_IN_WITH_IDP , response , 200 ) ;
133
129
const promise = _performApiRequest < typeof request , typeof serverResponse > (
134
130
auth ,
135
131
HttpMethod . POST ,
136
132
Endpoint . SIGN_IN_WITH_IDP ,
137
133
request
138
134
) ;
139
- await expect ( promise ) . to . be . rejectedWith (
140
- FirebaseError ,
141
- 'auth/credential-already-in-use'
142
- ) . eventually . with . deep . property ( 'customData' , { appName : 'test-app' , _tokenResponse : response } ) ;
135
+ await expect ( promise )
136
+ . to . be . rejectedWith ( FirebaseError , 'auth/credential-already-in-use' )
137
+ . eventually . with . deep . property ( 'customData' , {
138
+ appName : 'test-app' ,
139
+ _tokenResponse : response
140
+ } ) ;
143
141
expect ( mock . calls [ 0 ] . request ) . to . eql ( request ) ;
144
142
} ) ;
145
143
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ describe('core/strategies/idb', () => {
83
83
tenantId : 'tenant-id' ,
84
84
pendingToken : 'pending-token' ,
85
85
returnSecureToken : true ,
86
- returnIdpCredential : true ,
86
+ returnIdpCredential : true
87
87
} ) ;
88
88
} ) ;
89
89
@@ -113,7 +113,7 @@ describe('core/strategies/idb', () => {
113
113
tenantId : 'tenant-id' ,
114
114
pendingToken : 'pending-token' ,
115
115
postBody : 'post-body' ,
116
- bypassAuthState : true ,
116
+ bypassAuthState : true
117
117
} ) ;
118
118
expect ( stub . getCall ( 0 ) . lastArg ) . to . be . true ;
119
119
} ) ;
@@ -138,7 +138,7 @@ describe('core/strategies/idb', () => {
138
138
tenantId : 'tenant-id' ,
139
139
pendingToken : 'pending-token' ,
140
140
returnSecureToken : true ,
141
- returnIdpCredential : true ,
141
+ returnIdpCredential : true
142
142
} ) ;
143
143
} ) ;
144
144
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ class IdpCredential extends AuthCredential {
72
72
tenantId : this . params . tenantId ,
73
73
pendingToken : this . params . pendingToken ,
74
74
returnSecureToken : true ,
75
- returnIdpCredential : true ,
75
+ returnIdpCredential : true
76
76
} ;
77
77
78
78
if ( idToken ) {
You can’t perform that action at this time.
0 commit comments