@@ -19,14 +19,20 @@ import { expect, use } from 'chai';
19
19
import * as chaiAsPromised from 'chai-as-promised' ;
20
20
21
21
import {
22
- createUserWithEmailAndPassword , EmailAuthProvider , reload , signInWithCredential ,
23
- signInWithEmailAndPassword , updateProfile
22
+ createUserWithEmailAndPassword ,
23
+ EmailAuthProvider ,
24
+ reload ,
25
+ signInWithCredential ,
26
+ signInWithEmailAndPassword ,
27
+ updateProfile
24
28
} from '@firebase/auth-exp/index.browser' ;
25
29
import { Auth , OperationType , UserCredential } from '@firebase/auth-types-exp' ;
26
30
import { FirebaseError } from '@firebase/util' ;
27
31
28
32
import {
29
- cleanUpTestInstance , getTestInstance , randomEmail
33
+ cleanUpTestInstance ,
34
+ getTestInstance ,
35
+ randomEmail
30
36
} from '../../helpers/integration/helpers' ;
31
37
32
38
use ( chaiAsPromised ) ;
@@ -59,10 +65,9 @@ describe('Integration test: email/password auth', () => {
59
65
60
66
it ( 'errors when createUser called twice' , async ( ) => {
61
67
await createUserWithEmailAndPassword ( auth , email , 'password' ) ;
62
- await expect ( createUserWithEmailAndPassword ( auth , email , 'password' ) ) . to . be . rejectedWith (
63
- FirebaseError ,
64
- 'auth/email-already-in-use'
65
- ) ;
68
+ await expect (
69
+ createUserWithEmailAndPassword ( auth , email , 'password' )
70
+ ) . to . be . rejectedWith ( FirebaseError , 'auth/email-already-in-use' ) ;
66
71
} ) ;
67
72
68
73
context ( 'with existing user' , ( ) => {
0 commit comments