Skip to content

Commit 6ff6c69

Browse files
committed
Formatting
1 parent 33984f1 commit 6ff6c69

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

packages-exp/auth-exp/test/integration/flows/anonymous.test.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,21 @@ import { expect, use } from 'chai';
1919
import * as chaiAsPromised from 'chai-as-promised';
2020

2121
import {
22-
createUserWithEmailAndPassword, EmailAuthProvider, linkWithCredential, signInAnonymously,
23-
signInWithEmailAndPassword, updateEmail, updatePassword
22+
createUserWithEmailAndPassword,
23+
EmailAuthProvider,
24+
linkWithCredential,
25+
signInAnonymously,
26+
signInWithEmailAndPassword,
27+
updateEmail,
28+
updatePassword
2429
} from '@firebase/auth-exp/index.browser';
2530
import { OperationType } from '@firebase/auth-types-exp';
2631
import { FirebaseError } from '@firebase/util';
2732

28-
import { initIntegrationTestContext, randomEmail } from '../../helpers/integration/helpers';
33+
import {
34+
initIntegrationTestContext,
35+
randomEmail
36+
} from '../../helpers/integration/helpers';
2937

3038
use(chaiAsPromised);
3139

@@ -83,10 +91,12 @@ describe('Integration test: anonymous auth', () => {
8391

8492
await auth.signOut();
8593

86-
const {user: emailPassUser} = await signInWithEmailAndPassword(auth, email, 'password');
87-
expect(
88-
emailPassUser.uid
89-
).to.eq(anonUser.uid);
94+
const { user: emailPassUser } = await signInWithEmailAndPassword(
95+
auth,
96+
email,
97+
'password'
98+
);
99+
expect(emailPassUser.uid).to.eq(anonUser.uid);
90100
});
91101

92102
it('account can be linked using email and password', async () => {
@@ -95,10 +105,12 @@ describe('Integration test: anonymous auth', () => {
95105
await linkWithCredential(anonUser, cred);
96106
await auth.signOut();
97107

98-
const {user: emailPassUser} = await signInWithEmailAndPassword(auth, email, 'password');
99-
expect(
100-
emailPassUser.uid
101-
).to.eq(anonUser.uid);
108+
const { user: emailPassUser } = await signInWithEmailAndPassword(
109+
auth,
110+
email,
111+
'password'
112+
);
113+
expect(emailPassUser.uid).to.eq(anonUser.uid);
102114
});
103115

104116
it('account cannot be linked with existing email/password', async () => {

0 commit comments

Comments
 (0)