mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 10:56:47 +01:00
5463660746
* move markers and style to dedicated map endpoint * chore: open api * chore: clean up repos --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
15 lines
442 B
TypeScript
15 lines
442 B
TypeScript
import { SystemConfigCore } from 'src/cores/system-config.core';
|
|
import { ISystemMetadataRepository } from 'src/interfaces/system-metadata.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newSystemMetadataRepositoryMock = (reset = true): Mocked<ISystemMetadataRepository> => {
|
|
if (reset) {
|
|
SystemConfigCore.reset();
|
|
}
|
|
|
|
return {
|
|
get: vitest.fn() as any,
|
|
set: vitest.fn(),
|
|
readFile: vitest.fn(),
|
|
};
|
|
};
|