hunk.code_window:     });
       it('should always overwrite old tags', async () => {
         machineMock.classifyImage.mockResolvedValue([]);
         await sut.handleClassifyImage({ id: asset.id });
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit:       configMock.load.mockResolvedValue([
           { key: SystemConfigKey.MACHINE_LEARNING_CLASSIFICATION_ENABLED, value: true },
         ]);
  
hunk.file_path: server/src/domain/smart-info/smart-info.service.spec.ts
hunk.type: add
file: import { IStorageRepository, StorageCore } from '@app/domain';
  
  export const newStorageRepositoryMock = (reset = true): jest.Mocked<IStorageRepository> => {
    if (reset) {
      StorageCore.reset();
    }
  
    return {
      createZipStream: jest.fn(),
      createReadStream: jest.fn(),
      readFile: jest.fn(),
      writeFile: jest.fn(),
      unlink: jest.fn(),
      unlinkDir: jest.fn().mockResolvedValue(true),
      removeEmptyDirs: jest.fn(),
      moveFile: jest.fn(),
      checkFileExists: jest.fn(),
      mkdirSync: jest.fn(),
      checkDiskUsage: jest.fn(),
      readdir: jest.fn(),
      stat: jest.fn(),
      crawl: jest.fn(),
    };
  };
  