@@ -23,7 +23,7 @@ describe('auth() => Phone', function () {
23
23
24
24
describe ( 'signInWithPhoneNumber' , function ( ) {
25
25
it ( 'signs in with a valid code' , async function ( ) {
26
- const testPhone = await getRandomPhoneNumber ( ) ;
26
+ const testPhone = getRandomPhoneNumber ( ) ;
27
27
const confirmResult = await firebase . auth ( ) . signInWithPhoneNumber ( testPhone ) ;
28
28
confirmResult . verificationId . should . be . a . String ( ) ;
29
29
should . ok ( confirmResult . verificationId . length , 'verificationId string should not be empty' ) ;
@@ -37,7 +37,7 @@ describe('auth() => Phone', function () {
37
37
} ) ;
38
38
39
39
it ( 'errors on invalid code' , async function ( ) {
40
- const testPhone = await getRandomPhoneNumber ( ) ;
40
+ const testPhone = getRandomPhoneNumber ( ) ;
41
41
const confirmResult = await firebase . auth ( ) . signInWithPhoneNumber ( testPhone ) ;
42
42
confirmResult . verificationId . should . be . a . String ( ) ;
43
43
should . ok ( confirmResult . verificationId . length , 'verificationId string should not be empty' ) ;
@@ -56,23 +56,23 @@ describe('auth() => Phone', function () {
56
56
57
57
describe ( 'verifyPhoneNumber' , function ( ) {
58
58
it ( 'successfully verifies' , async function ( ) {
59
- const testPhone = await getRandomPhoneNumber ( ) ;
59
+ const testPhone = getRandomPhoneNumber ( ) ;
60
60
const confirmResult = await firebase . auth ( ) . signInWithPhoneNumber ( testPhone ) ;
61
61
const lastSmsCode = await getLastSmsCode ( testPhone ) ;
62
62
await confirmResult . confirm ( lastSmsCode ) ;
63
63
await firebase . auth ( ) . verifyPhoneNumber ( testPhone , false , false ) ;
64
64
} ) ;
65
65
66
66
it ( 'uses the autoVerifyTimeout when a non boolean autoVerifyTimeoutOrForceResend is provided' , async function ( ) {
67
- const testPhone = await getRandomPhoneNumber ( ) ;
67
+ const testPhone = getRandomPhoneNumber ( ) ;
68
68
const confirmResult = await firebase . auth ( ) . signInWithPhoneNumber ( testPhone ) ;
69
69
const lastSmsCode = await getLastSmsCode ( testPhone ) ;
70
70
await confirmResult . confirm ( lastSmsCode ) ;
71
71
await firebase . auth ( ) . verifyPhoneNumber ( testPhone , 0 , false ) ;
72
72
} ) ;
73
73
74
74
it ( 'throws an error with an invalid on event' , async function ( ) {
75
- const testPhone = await getRandomPhoneNumber ( ) ;
75
+ const testPhone = getRandomPhoneNumber ( ) ;
76
76
try {
77
77
await firebase
78
78
. auth ( )
@@ -89,7 +89,7 @@ describe('auth() => Phone', function () {
89
89
} ) ;
90
90
91
91
it ( 'throws an error with an invalid observer event' , async function ( ) {
92
- const testPhone = await getRandomPhoneNumber ( ) ;
92
+ const testPhone = getRandomPhoneNumber ( ) ;
93
93
try {
94
94
await firebase
95
95
. auth ( )
@@ -106,7 +106,7 @@ describe('auth() => Phone', function () {
106
106
} ) ;
107
107
108
108
it ( 'successfully runs verification complete handler' , async function ( ) {
109
- const testPhone = await getRandomPhoneNumber ( ) ;
109
+ const testPhone = getRandomPhoneNumber ( ) ;
110
110
await firebase
111
111
. auth ( )
112
112
. verifyPhoneNumber ( testPhone )
0 commit comments