From c032cfd99ed2a0518696fc972680bd71853787ec Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Tue, 27 Dec 2022 21:29:58 -0500 Subject: [PATCH] chore(server): fix unit test (#1194) --- server/apps/immich/src/api-v1/user/user.service.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 () => {