mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +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(),
|
|
};
|
|
};
|