import { IAccessRepository } from '@app/domain'; export interface IAccessRepositoryMock { asset: jest.Mocked; album: jest.Mocked; library: jest.Mocked; person: jest.Mocked; } export const newAccessRepositoryMock = (): IAccessRepositoryMock => { return { asset: { hasOwnerAccess: jest.fn(), hasAlbumAccess: jest.fn(), hasPartnerAccess: jest.fn(), hasSharedLinkAccess: jest.fn(), }, album: { hasOwnerAccess: jest.fn(), hasSharedAlbumAccess: jest.fn(), hasSharedLinkAccess: jest.fn(), }, library: { hasPartnerAccess: jest.fn(), }, person: { hasOwnerAccess: jest.fn(), }, }; };