mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
4cfac47674
* refactor(server): job repository * refactor: job repository * chore: generate open-api * fix: job panel * Remove incorrect subtitle Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
11 lines
274 B
TypeScript
11 lines
274 B
TypeScript
import { IJobRepository } from '../src';
|
|
|
|
export const newJobRepositoryMock = (): jest.Mocked<IJobRepository> => {
|
|
return {
|
|
empty: jest.fn(),
|
|
add: jest.fn().mockImplementation(() => Promise.resolve()),
|
|
isActive: jest.fn(),
|
|
getJobCounts: jest.fn(),
|
|
};
|
|
};
|