mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
b588a87d4a
rename domain repositories
17 lines
488 B
TypeScript
17 lines
488 B
TypeScript
import { SystemConfigCore } from 'src/cores/system-config.core';
|
|
import { ISystemConfigRepository } from 'src/interfaces/system-config.interface';
|
|
|
|
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(),
|
|
};
|
|
};
|