@@ -34,6 +34,7 @@ describe("enter password controller", () => {
3434 let req : RequestOutput ;
3535 let res : ResponseOutput ;
3636 const { email } = commonVariables ;
37+ const DEFAULT_MFA_METHOD_ID = "test-id1" ;
3738
3839 beforeEach ( ( ) => {
3940 req = createMockRequest ( PATH_NAMES . ENTER_PASSWORD ) ;
@@ -72,7 +73,7 @@ describe("enter password controller", () => {
7273 mfaMethodType : "SMS" ,
7374 passwordChangeRequired : false ,
7475 mfaMethods : buildMfaMethods ( {
75- id : "test-id1" ,
76+ id : DEFAULT_MFA_METHOD_ID ,
7677 phoneNumber : "07123456789" ,
7778 } ) ,
7879 } ,
@@ -106,7 +107,7 @@ describe("enter password controller", () => {
106107 mfaMethodType : "SMS" ,
107108 passwordChangeRequired : false ,
108109 mfaMethods : buildMfaMethods ( {
109- id : "test-id1" ,
110+ id : DEFAULT_MFA_METHOD_ID ,
110111 phoneNumber : "07123456789" ,
111112 } ) ,
112113 } ,
@@ -157,6 +158,7 @@ describe("enter password controller", () => {
157158 sinon . match . any ,
158159 sinon . match . any ,
159160 sinon . match . any ,
161+ DEFAULT_MFA_METHOD_ID ,
160162 JOURNEY_TYPE . REAUTHENTICATION
161163 ) ;
162164 } ) ;
@@ -197,7 +199,7 @@ describe("enter password controller", () => {
197199 mfaMethodVerified : true ,
198200 mfaMethodType : "SMS" ,
199201 mfaMethods : buildMfaMethods ( {
200- id : "test-id1" ,
202+ id : DEFAULT_MFA_METHOD_ID ,
201203 phoneNumber : "07123456789" ,
202204 } ) ,
203205 } ,
@@ -310,7 +312,7 @@ describe("enter password controller", () => {
310312 mfaMethodVerified : true ,
311313 mfaMethodType : "SMS" ,
312314 mfaMethods : buildMfaMethods ( {
313- id : "test-id1" ,
315+ id : DEFAULT_MFA_METHOD_ID ,
314316 phoneNumber : "07123456789" ,
315317 } ) ,
316318 } ,
@@ -362,7 +364,7 @@ describe("enter password controller", () => {
362364 mfaMethodVerified : true ,
363365 mfaMethodType : "SMS" ,
364366 mfaMethods : buildMfaMethods ( {
365- id : "test-id1" ,
367+ id : DEFAULT_MFA_METHOD_ID ,
366368 phoneNumber : "07123456789" ,
367369 } ) ,
368370 } ,
@@ -430,7 +432,7 @@ describe("enter password controller", () => {
430432 mfaMethodVerified : true ,
431433 mfaMethodType : "SMS" ,
432434 mfaMethods : buildMfaMethods ( {
433- id : "test-id1" ,
435+ id : DEFAULT_MFA_METHOD_ID ,
434436 phoneNumber : "07123456789" ,
435437 } ) ,
436438 } ,
@@ -455,7 +457,7 @@ describe("enter password controller", () => {
455457 mfaMethodVerified : false ,
456458 mfaMethodType : "SMS" ,
457459 mfaMethods : buildMfaMethods ( {
458- id : "test-id1" ,
460+ id : DEFAULT_MFA_METHOD_ID ,
459461 phoneNumber : "07123456789" ,
460462 } ) ,
461463 } ,
@@ -480,7 +482,7 @@ describe("enter password controller", () => {
480482 mfaMethodVerified : true ,
481483 mfaMethodType : "SMS" ,
482484 mfaMethods : buildMfaMethods ( {
483- id : "test-id1" ,
485+ id : DEFAULT_MFA_METHOD_ID ,
484486 phoneNumber : "07123456789" ,
485487 } ) ,
486488 } ,
@@ -533,7 +535,7 @@ describe("enter password controller", () => {
533535 mfaMethodType : "SMS" ,
534536 passwordChangeRequired : true ,
535537 mfaMethods : buildMfaMethods ( {
536- id : "test-id1" ,
538+ id : DEFAULT_MFA_METHOD_ID ,
537539 phoneNumber : "07123456789" ,
538540 } ) ,
539541 } ,
0 commit comments