mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
f04e47803c
* refactor(server): access checks * chore: simply asset module
11 lines
332 B
TypeScript
11 lines
332 B
TypeScript
import { IAccessRepository } from '@app/domain';
|
|
|
|
export const newAccessRepositoryMock = (): jest.Mocked<IAccessRepository> => {
|
|
return {
|
|
hasPartnerAccess: jest.fn(),
|
|
hasAlbumAssetAccess: jest.fn(),
|
|
hasOwnerAssetAccess: jest.fn(),
|
|
hasPartnerAssetAccess: jest.fn(),
|
|
hasSharedLinkAssetAccess: jest.fn(),
|
|
};
|
|
};
|