mirror of
https://github.com/immich-app/immich.git
synced 2025-12-26 09:14:58 +03:00
fix(web): new feature photo (#9443)
* fix: new feature photo * fix: use updatedAt
This commit is contained in:
@@ -42,6 +42,7 @@ const responseDto: PersonResponseDto = {
|
||||
birthDate: null,
|
||||
thumbnailPath: '/path/to/thumbnail.jpg',
|
||||
isHidden: false,
|
||||
updatedAt: expect.any(Date),
|
||||
};
|
||||
|
||||
const statistics = { assets: 3 };
|
||||
@@ -126,6 +127,7 @@ describe(PersonService.name, () => {
|
||||
birthDate: null,
|
||||
thumbnailPath: '/path/to/thumbnail.jpg',
|
||||
isHidden: true,
|
||||
updatedAt: expect.any(Date),
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -255,6 +257,7 @@ describe(PersonService.name, () => {
|
||||
birthDate: new Date('1976-06-30'),
|
||||
thumbnailPath: '/path/to/thumbnail.jpg',
|
||||
isHidden: false,
|
||||
updatedAt: expect.any(Date),
|
||||
});
|
||||
expect(personMock.update).toHaveBeenCalledWith({ id: 'person-1', birthDate: new Date('1976-06-30') });
|
||||
expect(jobMock.queue).not.toHaveBeenCalled();
|
||||
@@ -407,6 +410,7 @@ describe(PersonService.name, () => {
|
||||
id: personStub.noName.id,
|
||||
name: personStub.noName.name,
|
||||
thumbnailPath: personStub.noName.thumbnailPath,
|
||||
updatedAt: expect.any(Date),
|
||||
});
|
||||
|
||||
expect(jobMock.queue).not.toHaveBeenCalledWith();
|
||||
|
||||
Reference in New Issue
Block a user