mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
19 lines
539 B
TypeScript
19 lines
539 B
TypeScript
import { IMetadataRepository } from 'src/interfaces/metadata.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newMetadataRepositoryMock = (): Mocked<IMetadataRepository> => {
|
|
return {
|
|
init: vitest.fn(),
|
|
teardown: vitest.fn(),
|
|
reverseGeocode: vitest.fn(),
|
|
readTags: vitest.fn(),
|
|
writeTags: vitest.fn(),
|
|
extractBinaryTag: vitest.fn(),
|
|
getCameraMakes: vitest.fn(),
|
|
getCameraModels: vitest.fn(),
|
|
getCities: vitest.fn(),
|
|
getCountries: vitest.fn(),
|
|
getStates: vitest.fn(),
|
|
};
|
|
};
|