mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
8f304b8157
* refactor(server): shared links * chore: tests * fix: bugs and tests * fix: missed one expired at * fix: standardize file upload checks * test: lower flutter version Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
import { ISharedLinkRepository } from '../src';
|
|
|
|
export const newSharedLinkRepositoryMock = (): jest.Mocked<ISharedLinkRepository> => {
|
|
return {
|
|
getAll: jest.fn(),
|
|
get: jest.fn(),
|
|
getByKey: jest.fn(),
|
|
create: jest.fn(),
|
|
remove: jest.fn(),
|
|
save: jest.fn(),
|
|
hasAssetAccess: jest.fn(),
|
|
};
|
|
};
|