mirror of
https://github.com/immich-app/immich.git
synced 2025-01-11 06:10:28 +02:00
4b29bccc7c
move cores
17 lines
498 B
TypeScript
17 lines
498 B
TypeScript
import { SystemConfigCore } from 'src/cores/system-config.core';
|
|
import { ISystemConfigRepository } from 'src/domain/repositories/system-config.repository';
|
|
|
|
export const newSystemConfigRepositoryMock = (reset = true): jest.Mocked<ISystemConfigRepository> => {
|
|
if (reset) {
|
|
SystemConfigCore.reset();
|
|
}
|
|
|
|
return {
|
|
fetchStyle: jest.fn(),
|
|
load: jest.fn().mockResolvedValue([]),
|
|
readFile: jest.fn(),
|
|
saveAll: jest.fn().mockResolvedValue([]),
|
|
deleteKeys: jest.fn(),
|
|
};
|
|
};
|