@@ -423,16 +423,6 @@ describe("Change Phone Number: corner cases", () => {
423423 expect ( wrapper . find ( StatusMock ) ) . toHaveLength ( 0 ) ;
424424 } ) ;
425425
426- it ( "should redirect if user registration method is pending_verification" , async ( ) => {
427- validateToken . mockReturnValue ( true ) ;
428- props . userData = userData ;
429- props . userData . is_active = true ;
430- props . userData . method = "pending_verification" ;
431- props . settings . mobile_phone_verification = true ;
432- wrapper = await mountComponent ( props ) ;
433- expect ( wrapper . find ( StatusMock ) ) . toHaveLength ( 1 ) ;
434- } ) ;
435-
436426 it ( "should validate token" , async ( ) => {
437427 wrapper = await mountComponent ( props ) ;
438428 expect ( validateToken ) . toHaveBeenCalledWith (
@@ -444,6 +434,17 @@ describe("Change Phone Number: corner cases", () => {
444434 props . language ,
445435 ) ;
446436 } ) ;
437+
438+ it ( "should redirect if user registration method is pending_verification" , async ( ) => {
439+ validateToken . mockReturnValue ( true ) ;
440+ props . userData = userData ;
441+ props . userData . is_active = true ;
442+ props . userData . method = "pending_verification" ;
443+ props . settings . mobile_phone_verification = true ;
444+ wrapper = await mountComponent ( props ) ;
445+ expect ( wrapper . find ( StatusMock ) ) . toHaveLength ( 1 ) ;
446+ } ) ;
447+
447448 it ( "should redirect if mobile_phone_verification disabled" , async ( ) => {
448449 props . settings . mobile_phone_verification = false ;
449450 wrapper = await mountComponent ( props ) ;
0 commit comments