mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
13 lines
342 B
TypeScript
13 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(),
|
||
|
};
|
||
|
};
|