diff --git a/server/src/domain/smart-info/smart-info.service.spec.ts b/server/src/domain/smart-info/smart-info.service.spec.ts index 96e2af4b3..2abd66c3e 100644 --- a/server/src/domain/smart-info/smart-info.service.spec.ts +++ b/server/src/domain/smart-info/smart-info.service.spec.ts @@ -195,10 +195,12 @@ describe(SmartInfoService.name, () => { { imagePath: 'path/to/resize.ext' }, { enabled: true, modelName: 'ViT-B-32__openai' }, ); - expect(smartMock.upsert).toHaveBeenCalledWith({ - assetId: 'asset-1', - clipEmbedding: [0.01, 0.02, 0.03], - }); + expect(smartMock.upsert).toHaveBeenCalledWith( + { + assetId: 'asset-1', + }, + [0.01, 0.02, 0.03], + ); }); }); }); diff --git a/server/test/fixtures/shared-link.stub.ts b/server/test/fixtures/shared-link.stub.ts index 56a0c1045..a35b3dda7 100644 --- a/server/test/fixtures/shared-link.stub.ts +++ b/server/test/fixtures/shared-link.stub.ts @@ -209,7 +209,6 @@ export const sharedLinkStub = { tags: [], objects: ['a', 'b', 'c'], asset: null as any, - clipEmbedding: [0.12, 0.13, 0.14], }, webpPath: '', thumbhash: null, diff --git a/server/test/repositories/asset.repository.mock.ts b/server/test/repositories/asset.repository.mock.ts index 1c98b78c9..9d778883d 100644 --- a/server/test/repositories/asset.repository.mock.ts +++ b/server/test/repositories/asset.repository.mock.ts @@ -32,6 +32,7 @@ export const newAssetRepositoryMock = (): jest.Mocked => { getTimeBuckets: jest.fn(), restoreAll: jest.fn(), softDeleteAll: jest.fn(), + search: jest.fn(), getAssetIdByCity: jest.fn(), getAssetIdByTag: jest.fn(), searchMetadata: jest.fn(),