mirror of
https://github.com/immich-app/immich.git
synced 2025-12-15 06:24:23 +03:00
fix: tests
This commit is contained in:
@@ -226,7 +226,7 @@ describe(AssetService.name, () => {
|
||||
await sut.update(authStub.admin, 'asset-1', { description: 'Test description' });
|
||||
|
||||
expect(mocks.asset.upsertExif).toHaveBeenCalledWith(
|
||||
{ assetId: 'asset-1', description: 'Test description', lockedProperties: ['description'] },
|
||||
{ assetId: 'asset-1', description: 'Test description' },
|
||||
{ lockedPropertiesBehavior: 'update' },
|
||||
);
|
||||
});
|
||||
@@ -242,7 +242,6 @@ describe(AssetService.name, () => {
|
||||
{
|
||||
assetId: 'asset-1',
|
||||
rating: 3,
|
||||
lockedProperties: ['rating'],
|
||||
},
|
||||
{ lockedPropertiesBehavior: 'update' },
|
||||
);
|
||||
|
||||
@@ -419,7 +419,7 @@ export class MetadataService extends BaseService {
|
||||
<Tags>{
|
||||
Description: description,
|
||||
ImageDescription: description,
|
||||
DateTimeOriginal: dateTimeOriginal?.toISOString(),
|
||||
DateTimeOriginal: dateTimeOriginal == null ? undefined : String(dateTimeOriginal),
|
||||
GPSLatitude: latitude,
|
||||
GPSLongitude: longitude,
|
||||
Rating: rating,
|
||||
|
||||
Reference in New Issue
Block a user