mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05:00
13 lines
335 B
TypeScript
13 lines
335 B
TypeScript
import { IApiKeyRepository } from 'src/types';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newKeyRepositoryMock = (): Mocked<IApiKeyRepository> => {
|
|
return {
|
|
create: vitest.fn(),
|
|
update: vitest.fn(),
|
|
delete: vitest.fn(),
|
|
getKey: vitest.fn(),
|
|
getById: vitest.fn(),
|
|
getByUserId: vitest.fn(),
|
|
};
|
|
};
|