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:
parent
996e31008a
commit
7156836d19
1 changed files with 2 additions and 2 deletions
|
@ -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: '/',
|
||||
}),
|
||||
|
|
Loading…
Add table
Reference in a new issue