immich/server/libs/domain/test/machine-learning.repository.mock.ts

12 lines
313 B
TypeScript
Raw Normal View History

import { IMachineLearningRepository } from '../src';
export const newMachineLearningRepositoryMock = (): jest.Mocked<IMachineLearningRepository> => {
return {
classifyImage: jest.fn(),
detectObjects: jest.fn(),
encodeImage: jest.fn(),
encodeText: jest.fn(),
2023-05-17 10:07:17 -07:00
detectFaces: jest.fn(),
};
};