mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
a019fb670e
* refactor(server): config service * fix: function renaming --------- Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
13 lines
415 B
TypeScript
13 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(),
|
|
};
|
|
};
|