mirror of
https://github.com/immich-app/immich.git
synced 2024-11-17 02:49:01 -07:00
8ebac41318
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
15 lines
390 B
TypeScript
15 lines
390 B
TypeScript
import { IJobRepository } from '@app/domain';
|
|
|
|
export const newJobRepositoryMock = (): jest.Mocked<IJobRepository> => {
|
|
return {
|
|
addHandler: 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(),
|
|
};
|
|
};
|