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