@@ -19,13 +19,21 @@ import { expect, use } from 'chai';
19
19
import * as chaiAsPromised from 'chai-as-promised' ;
20
20
21
21
import {
22
- createUserWithEmailAndPassword , EmailAuthProvider , linkWithCredential , signInAnonymously ,
23
- signInWithEmailAndPassword , updateEmail , updatePassword
22
+ createUserWithEmailAndPassword ,
23
+ EmailAuthProvider ,
24
+ linkWithCredential ,
25
+ signInAnonymously ,
26
+ signInWithEmailAndPassword ,
27
+ updateEmail ,
28
+ updatePassword
24
29
} from '@firebase/auth-exp/index.browser' ;
25
30
import { OperationType } from '@firebase/auth-types-exp' ;
26
31
import { FirebaseError } from '@firebase/util' ;
27
32
28
- import { initIntegrationTestContext , randomEmail } from '../../helpers/integration/helpers' ;
33
+ import {
34
+ initIntegrationTestContext ,
35
+ randomEmail
36
+ } from '../../helpers/integration/helpers' ;
29
37
30
38
use ( chaiAsPromised ) ;
31
39
@@ -83,10 +91,12 @@ describe('Integration test: anonymous auth', () => {
83
91
84
92
await auth . signOut ( ) ;
85
93
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 ) ;
90
100
} ) ;
91
101
92
102
it ( 'account can be linked using email and password' , async ( ) => {
@@ -95,10 +105,12 @@ describe('Integration test: anonymous auth', () => {
95
105
await linkWithCredential ( anonUser , cred ) ;
96
106
await auth . signOut ( ) ;
97
107
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 ) ;
102
114
} ) ;
103
115
104
116
it ( 'account cannot be linked with existing email/password' , async ( ) => {
0 commit comments