mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
30f499cf2e
update server to use absolute import paths
17 lines
513 B
TypeScript
17 lines
513 B
TypeScript
import { ISystemConfigRepository } from 'src/domain/repositories/system-config.repository';
|
|
import { SystemConfigCore } from 'src/domain/system-config/system-config.core';
|
|
|
|
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(),
|
|
};
|
|
};
|