@@ -20,6 +20,7 @@ describe('multi-factor modular', function () {
2020 await Utils . sleep ( 50 ) ;
2121 }
2222 } ) ;
23+
2324 it ( 'has no multi-factor information if not enrolled' , async function ( ) {
2425 await firebase . auth ( ) . signInWithEmailAndPassword ( TEST_EMAIL , TEST_PASS ) ;
2526 const { multiFactor } = firebase . auth ( ) . currentUser ;
@@ -84,6 +85,7 @@ describe('multi-factor modular', function () {
8485 new Error ( 'Multi-factor users need to handle an exception on sign-in' ) ,
8586 ) ;
8687 } ) ;
88+
8789 it ( 'reports an error when providing an invalid sms code' , async function ( ) {
8890 if ( device . getPlatform ( ) === 'ios' ) {
8991 this . skip ( ) ;
@@ -130,6 +132,7 @@ describe('multi-factor modular', function () {
130132 }
131133 return Promise . reject ( ) ;
132134 } ) ;
135+
133136 it ( 'reports an error when providing an invalid verification code' , async function ( ) {
134137 if ( device . getPlatform ( ) === 'ios' ) {
135138 this . skip ( ) ;
@@ -165,6 +168,7 @@ describe('multi-factor modular', function () {
165168 }
166169 return Promise . reject ( ) ;
167170 } ) ;
171+
168172 it ( 'reports an error when using an unknown factor' , async function ( ) {
169173 const { email, password } = await createUserWithMultiFactor ( ) ;
170174
@@ -253,6 +257,7 @@ describe('multi-factor modular', function () {
253257 }
254258 return Promise . resolve ( ) ;
255259 } ) ;
260+
256261 it ( 'can enroll new factor without display name' , async function ( ) {
257262 if ( device . getPlatform ( ) === 'ios' ) {
258263 this . skip ( ) ;
@@ -283,6 +288,7 @@ describe('multi-factor modular', function () {
283288 }
284289 return Promise . resolve ( ) ;
285290 } ) ;
291+
286292 it ( 'can enroll multiple factors' , async function ( ) {
287293 if ( device . getPlatform ( ) === 'ios' ) {
288294 this . skip ( ) ;
@@ -314,6 +320,7 @@ describe('multi-factor modular', function () {
314320
315321 return Promise . resolve ( ) ;
316322 } ) ;
323+
317324 it ( 'can not enroll the same factor twice' , async function ( ) {
318325 this . skip ( ) ;
319326 // This test should probably be implemented but doesn't work:
@@ -389,6 +396,7 @@ describe('multi-factor modular', function () {
389396 }
390397 return Promise . reject ( ) ;
391398 } ) ;
399+
392400 it ( 'throws an error for unknown sessions' , async function ( ) {
393401 const { email, password } = await createUserWithMultiFactor ( ) ;
394402 let resolver = null ;
@@ -415,6 +423,7 @@ describe('multi-factor modular', function () {
415423 }
416424 return Promise . reject ( ) ;
417425 } ) ;
426+
418427 it ( 'throws an error for unknown verification code' , async function ( ) {
419428 const { email, password } = await createUserWithMultiFactor ( ) ;
420429
@@ -482,6 +491,7 @@ describe('multi-factor modular', function () {
482491 new Error ( 'Enrolling a second factor when using phone authentication is not supported.' ) ,
483492 ) ;
484493 } ) ;
494+
485495 it ( 'can not enroll when phone number is missing + sign' , async function ( ) {
486496 await createVerifiedUser ( 'verified@example.com' , 'test123' ) ;
487497 const multiFactorUser = firebase . auth ( ) . multiFactor ( firebase . auth ( ) . currentUser ) ;
@@ -516,6 +526,7 @@ describe('multi-factor modular', function () {
516526 await Utils . sleep ( 50 ) ;
517527 }
518528 } ) ;
529+
519530 it ( 'has no multi-factor information if not enrolled' , async function ( ) {
520531 const { signInWithEmailAndPassword, getAuth } = authModular ;
521532
@@ -804,6 +815,7 @@ describe('multi-factor modular', function () {
804815 }
805816 return Promise . resolve ( ) ;
806817 } ) ;
818+
807819 it ( 'can enroll new factor without display name' , async function ( ) {
808820 if ( device . getPlatform ( ) === 'ios' ) {
809821 this . skip ( ) ;
@@ -842,6 +854,7 @@ describe('multi-factor modular', function () {
842854 }
843855 return Promise . resolve ( ) ;
844856 } ) ;
857+
845858 it ( 'can enroll multiple factors' , async function ( ) {
846859 if ( device . getPlatform ( ) === 'ios' ) {
847860 this . skip ( ) ;
@@ -881,6 +894,7 @@ describe('multi-factor modular', function () {
881894
882895 return Promise . resolve ( ) ;
883896 } ) ;
897+
884898 it ( 'can not enroll the same factor twice' , async function ( ) {
885899 this . skip ( ) ;
886900 // This test should probably be implemented but doesn't work:
@@ -962,6 +976,7 @@ describe('multi-factor modular', function () {
962976 }
963977 return Promise . reject ( ) ;
964978 } ) ;
979+
965980 it ( 'throws an error for unknown sessions' , async function ( ) {
966981 const { getAuth, signInWithEmailAndPassword, getMultiFactorResolver } = authModular ;
967982
@@ -994,6 +1009,7 @@ describe('multi-factor modular', function () {
9941009 }
9951010 return Promise . reject ( ) ;
9961011 } ) ;
1012+
9971013 it ( 'throws an error for unknown verification code' , async function ( ) {
9981014 const { getAuth, signInWithEmailAndPassword, getMultiFactorResolver } = authModular ;
9991015
@@ -1075,6 +1091,7 @@ describe('multi-factor modular', function () {
10751091 new Error ( 'Enrolling a second factor when using phone authentication is not supported.' ) ,
10761092 ) ;
10771093 } ) ;
1094+
10781095 it ( 'can not enroll when phone number is missing + sign' , async function ( ) {
10791096 const { getAuth, multiFactor } = authModular ;
10801097
0 commit comments