Skip to content

High performance self-hosted photo and video management solution.

chore(server): fix unit test (#1194)

Jason Rasmussenc032cfd99ed2
diff --git a/server/apps/immich/src/api-v1/user/user.service.spec.ts b/server/apps/immich/src/api-v1/user/user.service.spec.ts
index 399fff2097..b7e76be43f 100644
--- a/server/apps/immich/src/api-v1/user/user.service.spec.ts
+++ b/server/apps/immich/src/api-v1/user/user.service.spec.ts
@@ -110,7 +110,10 @@ describe('UserService', () => {
await sut.updateUser(immichUser, dto);
- expect(userRepositoryMock.update).toHaveBeenCalledWith(immichUser.id, { email: '[email protected]' });
+ expect(userRepositoryMock.update).toHaveBeenCalledWith(immichUser.id, {
+ id: 'immich_id',
+ email: '[email protected]',
+ });
});
it('should not let a user change their email to one already in use', async () => {