mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
4478e524f8
* refactor: auth device => sessions * chore: open api
12 lines
342 B
TypeScript
12 lines
342 B
TypeScript
import { ISessionRepository } from 'src/interfaces/session.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newSessionRepositoryMock = (): Mocked<ISessionRepository> => {
|
|
return {
|
|
create: vitest.fn(),
|
|
update: vitest.fn(),
|
|
delete: vitest.fn(),
|
|
getByToken: vitest.fn(),
|
|
getByUserId: vitest.fn(),
|
|
};
|
|
};
|