2024-03-21 04:59:49 -07:00
|
|
|
import { IMetadataRepository } from 'src/interfaces/metadata.interface';
|
2024-04-16 07:44:45 -07:00
|
|
|
import { Mocked, vitest } from 'vitest';
|
2023-09-27 11:44:51 -07:00
|
|
|
|
2024-04-16 07:44:45 -07:00
|
|
|
export const newMetadataRepositoryMock = (): Mocked<IMetadataRepository> => {
|
2023-09-27 11:44:51 -07:00
|
|
|
return {
|
2024-04-16 07:44:45 -07:00
|
|
|
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(),
|
2023-09-27 11:44:51 -07:00
|
|
|
};
|
|
|
|
};
|