mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
3b37b70626
* feat: user license endpoints * feat: server license endpoints * chore: pr feedback * chore: add more test cases * chore: add prod license public keys * chore: open-api generation
16 lines
467 B
TypeScript
16 lines
467 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(),
|
|
delete: vitest.fn(),
|
|
readFile: vitest.fn(),
|
|
};
|
|
};
|