mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
fix(ui): fix ut
fix ut
This commit is contained in:
parent
647bd884a7
commit
700ca27266
2 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,7 @@ import { MemoryRouter } from 'react-router-dom';
|
|||
|
||||
import renderWithPageContext from '@/__mocks__/RenderWithPageContext';
|
||||
import { putInteraction, sendVerificationCode } from '@/apis/interaction';
|
||||
import { VerificationCodeIdentifier } from '@/types';
|
||||
import { UserFlow, VerificationCodeIdentifier } from '@/types';
|
||||
|
||||
import ForgotPasswordForm from '.';
|
||||
|
||||
|
@ -81,7 +81,7 @@ describe('ForgotPasswordForm', () => {
|
|||
expect(sendVerificationCode).toBeCalledWith({ email });
|
||||
expect(mockedNavigate).toBeCalledWith(
|
||||
{
|
||||
pathname: 'verification-code',
|
||||
pathname: `/${UserFlow.forgotPassword}/verification-code`,
|
||||
search: '',
|
||||
},
|
||||
{ state: { identifier, value }, replace: undefined }
|
||||
|
|
|
@ -7,6 +7,7 @@ import {
|
|||
putInteraction,
|
||||
sendVerificationCode,
|
||||
} from '@/apis/interaction';
|
||||
import { UserFlow } from '@/types';
|
||||
|
||||
import PasswordForm from '.';
|
||||
|
||||
|
@ -89,7 +90,7 @@ describe('PasswordSignInForm', () => {
|
|||
|
||||
expect(mockedNavigate).toBeCalledWith(
|
||||
{
|
||||
pathname: 'verification-code',
|
||||
pathname: `/${UserFlow.signIn}/verification-code`,
|
||||
search: '',
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue