From ee6d198366273b4cd10a35525f68424799a15a9a Mon Sep 17 00:00:00 2001 From: parrera Date: Tue, 1 Jul 2025 17:12:36 -0300 Subject: [PATCH 1/2] tentando novamente --- backend/src/services/user/update-user.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/services/user/update-user.spec.ts b/backend/src/services/user/update-user.spec.ts index f11d7849..23b44f6d 100644 --- a/backend/src/services/user/update-user.spec.ts +++ b/backend/src/services/user/update-user.spec.ts @@ -89,6 +89,7 @@ describe('UpdateUserService', () => { test('should return updated user on success', async () => { const result = await sut.execute(defaultParams) - expect(result).toEqual(Success.create(updatedUser)) + /* expect(result).toEqual(Success.create(updatedUser))*/ + expect(result).toEqual(Success.create({ ...updatedUser, email: 'email-errado@mail.com' })) }) }) From 60cbf20a6ad40aef0f414e328f097a1e21e1ecc0 Mon Sep 17 00:00:00 2001 From: parrera Date: Tue, 1 Jul 2025 17:16:15 -0300 Subject: [PATCH 2/2] =?UTF-8?q?consertando=20a=20fun=C3=A7=C3=A3o=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/services/user/update-user.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/services/user/update-user.spec.ts b/backend/src/services/user/update-user.spec.ts index 23b44f6d..f11d7849 100644 --- a/backend/src/services/user/update-user.spec.ts +++ b/backend/src/services/user/update-user.spec.ts @@ -89,7 +89,6 @@ describe('UpdateUserService', () => { test('should return updated user on success', async () => { const result = await sut.execute(defaultParams) - /* expect(result).toEqual(Success.create(updatedUser))*/ - expect(result).toEqual(Success.create({ ...updatedUser, email: 'email-errado@mail.com' })) + expect(result).toEqual(Success.create(updatedUser)) }) })