refactor: e2e tests (#4536)

This commit is contained in:
Jason Rasmussen
2023-10-18 18:02:42 -04:00
committed by GitHub
parent 31987bc043
commit 4b59f83288
22 changed files with 189 additions and 201 deletions

View File

@@ -109,6 +109,10 @@ export class MetadataService {
}
}
async teardown() {
await this.repository.teardown();
}
async handleLivePhotoLinking(job: IEntityJob) {
const { id } = job;
const [asset] = await this.assetRepository.getByIds([id]);

View File

@@ -26,6 +26,7 @@ export interface ImmichTags extends Omit<Tags, 'FocalLength'> {
export interface IMetadataRepository {
init(options: Partial<InitOptions>): Promise<void>;
teardown(): Promise<void>;
reverseGeocode(point: GeoPoint): Promise<ReverseGeocodeResult>;
deleteCache(): Promise<void>;
getExifTags(path: string): Promise<ImmichTags | null>;