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: 'updated@test.com' }); + expect(userRepositoryMock.update).toHaveBeenCalledWith(immichUser.id, { + id: 'immich_id', + email: 'updated@test.com', + }); }); it('should not let a user change their email to one already in use', async () => {