immich/server/test/repositories/metadata.repository.mock.ts

18 lines
491 B
TypeScript
Raw Normal View History

import { IMetadataRepository } from 'src/domain/repositories/metadata.repository';
export const newMetadataRepositoryMock = (): jest.Mocked<IMetadataRepository> => {
return {
init: jest.fn(),
2023-10-18 15:02:42 -07:00
teardown: jest.fn(),
reverseGeocode: jest.fn(),
readTags: jest.fn(),
writeTags: jest.fn(),
extractBinaryTag: jest.fn(),
getCameraMakes: jest.fn(),
getCameraModels: jest.fn(),
getCities: jest.fn(),
getCountries: jest.fn(),
getStates: jest.fn(),
};
};