0
Fork 0
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:
simeng-li 2023-02-15 18:54:55 +08:00
parent 647bd884a7
commit 700ca27266
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075
2 changed files with 4 additions and 3 deletions

View file

@ -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 }

View file

@ -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: '',
},
{