0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

refactor(core): fix mock return value in UI UT

This commit is contained in:
Darcy Ye 2022-09-29 12:14:51 +08:00
parent 996e31008a
commit 7156836d19
No known key found for this signature in database
GPG key ID: B46F4C07EDEFC610

View file

@ -96,7 +96,7 @@ describe('api', () => {
});
it('verifySignInSmsPasscode', async () => {
mockKyPost.mockReturnValueOnce({
mockKyPost.mockReturnValueOnce({}).mockReturnValueOnce({
json: () => ({
redirectTo: '/',
}),
@ -123,7 +123,7 @@ describe('api', () => {
});
it('verifySignInEmailPasscode', async () => {
mockKyPost.mockReturnValueOnce({
mockKyPost.mockReturnValueOnce({}).mockReturnValueOnce({
json: () => ({
redirectTo: '/',
}),