mirror of
https://github.com/immich-app/immich.git
synced 2024-11-17 10:58:53 -07:00
9adbbd42be
* feat(server): resume queues * chore: regenerate open-api
13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
import { IJobRepository } from '../src';
|
|
|
|
export const newJobRepositoryMock = (): jest.Mocked<IJobRepository> => {
|
|
return {
|
|
empty: jest.fn(),
|
|
pause: jest.fn(),
|
|
resume: jest.fn(),
|
|
queue: jest.fn().mockImplementation(() => Promise.resolve()),
|
|
isActive: jest.fn(),
|
|
getJobCounts: jest.fn(),
|
|
};
|
|
};
|