0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

refactor(core): fix test

This commit is contained in:
Gao Sun 2022-08-23 20:03:07 +08:00
parent a8a3de3544
commit 1d412662b6
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -6,7 +6,7 @@ import { mockUser } from '@/__mocks__';
import RequestError from '@/errors/RequestError';
import { createRequester } from '@/utils/test-utils';
import sessionRoutes from '.';
import sessionRoutes from './username-password';
const insertUser = jest.fn(async (..._args: unknown[]) => ({ id: 'id' }));
const findUserById = jest.fn(async (): Promise<User> => mockUser);