mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 11:56:46 +01:00
12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
import { ISessionRepository } from 'src/interfaces/session.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newSessionRepositoryMock = (): Mocked<ISessionRepository> => {
|
|
return {
|
|
create: vitest.fn() as any,
|
|
update: vitest.fn() as any,
|
|
delete: vitest.fn(),
|
|
getByToken: vitest.fn(),
|
|
getByUserId: vitest.fn(),
|
|
};
|
|
};
|