File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
packages-exp/auth-exp/test/integration/flows Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -250,24 +250,39 @@ describe('Integration test: headless IdP', () => {
250
250
) ;
251
251
252
252
// First sign in with Google
253
- const { user : initialUser } = await signInWithCredential ( auth , googleCredential ) ;
253
+ const { user : initialUser } = await signInWithCredential (
254
+ auth ,
255
+ googleCredential
256
+ ) ;
254
257
expect ( initialUser . providerData . length ) . to . eq ( 1 ) ;
255
258
expect ( initialUser . providerData [ 0 ] . providerId ) . to . eq ( 'google.com' ) ;
256
259
257
260
await auth . signOut ( ) ;
258
261
259
262
// Now with GitHub
260
- const { user : githubUser } = await signInWithCredential ( auth , githubCredential ) ;
263
+ const { user : githubUser } = await signInWithCredential (
264
+ auth ,
265
+ githubCredential
266
+ ) ;
261
267
expect ( githubUser . uid ) . to . eq ( initialUser . uid ) ;
262
268
expect ( githubUser . providerData . length ) . to . eq ( 2 ) ;
263
- expect ( githubUser . providerData . map ( p => p . providerId ) ) . to . have . members ( [ 'google.com' , 'github.com' ] ) ;
269
+ expect ( githubUser . providerData . map ( p => p . providerId ) ) . to . have . members ( [
270
+ 'google.com' ,
271
+ 'github.com'
272
+ ] ) ;
264
273
265
274
await auth . signOut ( ) ;
266
275
267
276
// Sign in once again with the initial credential
268
- const { user : googleUser } = await signInWithCredential ( auth , googleCredential ) ;
277
+ const { user : googleUser } = await signInWithCredential (
278
+ auth ,
279
+ googleCredential
280
+ ) ;
269
281
expect ( googleUser . uid ) . to . eq ( initialUser . uid ) ;
270
282
expect ( googleUser . providerData . length ) . to . eq ( 2 ) ;
271
- expect ( googleUser . providerData . map ( p => p . providerId ) ) . to . have . members ( [ 'google.com' , 'github.com' ] ) ;
283
+ expect ( googleUser . providerData . map ( p => p . providerId ) ) . to . have . members ( [
284
+ 'google.com' ,
285
+ 'github.com'
286
+ ] ) ;
272
287
} ) ;
273
288
} ) ;
You can’t perform that action at this time.
0 commit comments