fix: type errors
This commit is contained in:
1 parent
6631530dcb
commit
f4c06cbc95
4 files changed
+18
-27
No files matched your search
@@ -155,7 +155,7 @@ test("canonicalizes every UUID before fingerprinting, lookup, Immich calls, and
|
||||
expect(second).toEqual(first);
|
||||
expect(usages).toHaveLength(1);
|
||||
expect(usages[0]).toMatchObject({ editorialId, assetId, albumId, idempotencyKey });
|
||||
expect(immich.listAlbumsForAsset).toHaveBeenCalledWith(assetId);
|
||||
expect(immich.getAlbum).toHaveBeenCalledWith(albumId);
|
||||
expect(immich.getAsset).toHaveBeenCalledWith(assetId);
|
||||
});
|
||||
|
||||
@@ -273,23 +273,15 @@ test("rejects removal from the requested album between preflight and locked refr
|
||||
|
||||
test("persists metadata from the locked final Immich refresh", async () => {
|
||||
const { service, immich, usages } = createService();
|
||||
immich.getAsset
|
||||
immich.getAlbum
|
||||
.mockResolvedValueOnce({
|
||||
id: assetId,
|
||||
type: "IMAGE" as const,
|
||||
originalFileName: "jubel.jpg",
|
||||
originalMimeType: "image/jpeg",
|
||||
albums: [{ id: albumId }],
|
||||
id: albumId,
|
||||
albumName: "Presse 2026",
|
||||
})
|
||||
.mockResolvedValueOnce([
|
||||
{
|
||||
id: albumId,
|
||||
albumName: "Presse final",
|
||||
description: null,
|
||||
albumThumbnailAssetId: assetId,
|
||||
assetCount: 1,
|
||||
},
|
||||
]);
|
||||
.mockResolvedValueOnce({
|
||||
id: albumId,
|
||||
albumName: "Presse final",
|
||||
});
|
||||
const currentAsset = {
|
||||
id: assetId,
|
||||
type: "IMAGE" as const,
|
||||
|
||||
Reference in new issue
Block a user