@@ -17,14 +17,12 @@ jest.mock('../../../models', () => ({
1717 __esModule : true ,
1818 useAuthClient : ( ) => ( {
1919 checkTotpTokenCodeWithPasswordForgotToken : mockCheckTotp ,
20- recoveryPhoneGetWithPasswordForgotToken : mockRecoveryPhoneGetWithPasswordForgotToken ,
20+ recoveryPhoneGetWithPasswordForgotToken :
21+ mockRecoveryPhoneGetWithPasswordForgotToken ,
2122 } ) ,
2223 useFtlMsgResolver : ( ) => ( {
2324 getMsg : ( _id : string , fallback : string ) => fallback ,
2425 } ) ,
25- useConfig : ( ) => ( {
26- featureFlags : { recoveryPhonePasswordReset2fa : true } ,
27- } ) ,
2826} ) ) ;
2927
3028const mockNavigate = jest . fn ( ) ;
@@ -77,7 +75,9 @@ describe('ConfirmTotpResetPasswordContainer', () => {
7775
7876 it ( 'calls authClient then navigates on success' , async ( ) => {
7977 mockCheckTotp . mockResolvedValueOnce ( { success : true } ) ;
80- mockRecoveryPhoneGetWithPasswordForgotToken . mockResolvedValueOnce ( { exists : false } ) ;
78+ mockRecoveryPhoneGetWithPasswordForgotToken . mockResolvedValueOnce ( {
79+ exists : false ,
80+ } ) ;
8181
8282 await renderComponent ( ) ;
8383
@@ -102,7 +102,9 @@ describe('ConfirmTotpResetPasswordContainer', () => {
102102
103103 it ( 'sets localized error message when authClient returns success: false' , async ( ) => {
104104 mockCheckTotp . mockResolvedValueOnce ( { success : false } ) ;
105- mockRecoveryPhoneGetWithPasswordForgotToken . mockResolvedValueOnce ( { exists : false } ) ;
105+ mockRecoveryPhoneGetWithPasswordForgotToken . mockResolvedValueOnce ( {
106+ exists : false ,
107+ } ) ;
106108
107109 await renderComponent ( ) ;
108110
@@ -115,7 +117,9 @@ describe('ConfirmTotpResetPasswordContainer', () => {
115117
116118 it ( 'forwards location.state when onTroubleWithCode is invoked' , async ( ) => {
117119 mockCheckTotp . mockResolvedValueOnce ( { success : true } ) ;
118- mockRecoveryPhoneGetWithPasswordForgotToken . mockResolvedValueOnce ( { exists : true } ) ;
120+ mockRecoveryPhoneGetWithPasswordForgotToken . mockResolvedValueOnce ( {
121+ exists : true ,
122+ } ) ;
119123
120124 await renderComponent ( ) ;
121125
0 commit comments