mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
a019fb670e
* refactor(server): config service * fix: function renaming --------- Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
14 lines
415 B
TypeScript
14 lines
415 B
TypeScript
import { ISystemMetadataRepository } from 'src/interfaces/system-metadata.interface';
|
|
import { clearConfigCache } from 'src/utils/config';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newSystemMetadataRepositoryMock = (): Mocked<ISystemMetadataRepository> => {
|
|
clearConfigCache();
|
|
return {
|
|
get: vitest.fn() as any,
|
|
set: vitest.fn(),
|
|
delete: vitest.fn(),
|
|
readFile: vitest.fn(),
|
|
};
|
|
};
|