feat: combine with handleSidecarCheck

This commit is contained in:
Jonathan Jogenfors
2025-08-27 15:14:27 +02:00
parent 65f63be564
commit 6b91b31dbc
2 changed files with 29 additions and 23 deletions
+1 -9
View File
@@ -27,13 +27,12 @@ const forSidecarJob = (
asset: {
id?: string;
originalPath?: string;
sidecarPath?: string | null;
files: { id: string; type: AssetFileType; path: string }[];
} = {},
) => {
return {
id: factory.uuid(),
originalPath: '/path/to/IMG_123.jpg',
sidecarPath: null,
...asset,
};
};
@@ -58,13 +57,6 @@ const makeFaceTags = (face: Partial<{ Name: string }> = {}, orientation?: Immich
},
});
function removeNonSidecarFiles(asset: any) {
return {
...asset,
files: asset.files.filter((file: any) => file.type === AssetFileType.Sidecar),
};
}
describe(MetadataService.name, () => {
let sut: MetadataService;
let mocks: ServiceMocks;