mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
11 lines
329 B
TypeScript
11 lines
329 B
TypeScript
import { IMetadataRepository } from 'src/interfaces/metadata.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newMetadataRepositoryMock = (): Mocked<IMetadataRepository> => {
|
|
return {
|
|
teardown: vitest.fn(),
|
|
readTags: vitest.fn(),
|
|
writeTags: vitest.fn(),
|
|
extractBinaryTag: vitest.fn(),
|
|
};
|
|
};
|