Skip to content

Commit 5049397

Browse files
committed
Formatting
1 parent 2ffbb5d commit 5049397

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

packages-exp/auth-exp/test/integration/flows/idp.local.test.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,24 +250,39 @@ describe('Integration test: headless IdP', () => {
250250
);
251251

252252
// First sign in with Google
253-
const {user: initialUser} = await signInWithCredential(auth, googleCredential);
253+
const { user: initialUser } = await signInWithCredential(
254+
auth,
255+
googleCredential
256+
);
254257
expect(initialUser.providerData.length).to.eq(1);
255258
expect(initialUser.providerData[0].providerId).to.eq('google.com');
256259

257260
await auth.signOut();
258261

259262
// Now with GitHub
260-
const {user: githubUser} = await signInWithCredential(auth, githubCredential);
263+
const { user: githubUser } = await signInWithCredential(
264+
auth,
265+
githubCredential
266+
);
261267
expect(githubUser.uid).to.eq(initialUser.uid);
262268
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+
]);
264273

265274
await auth.signOut();
266275

267276
// 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+
);
269281
expect(googleUser.uid).to.eq(initialUser.uid);
270282
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+
]);
272287
});
273288
});

0 commit comments

Comments
 (0)