mirror of
https://github.com/immich-app/immich.git
synced 2024-12-27 10:58:13 +02:00
982183600d
* add clear failed jobs button * refactor: clean up code * chore: open api --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
19 lines
499 B
TypeScript
19 lines
499 B
TypeScript
import { IJobRepository } from '@app/domain';
|
|
|
|
export const newJobRepositoryMock = (): jest.Mocked<IJobRepository> => {
|
|
return {
|
|
addHandler: jest.fn(),
|
|
addCronJob: jest.fn(),
|
|
deleteCronJob: jest.fn(),
|
|
updateCronJob: jest.fn(),
|
|
setConcurrency: jest.fn(),
|
|
empty: jest.fn(),
|
|
pause: jest.fn(),
|
|
resume: jest.fn(),
|
|
queue: jest.fn().mockImplementation(() => Promise.resolve()),
|
|
getQueueStatus: jest.fn(),
|
|
getJobCounts: jest.fn(),
|
|
clear: jest.fn(),
|
|
};
|
|
};
|