From 3020ce12f3fda187b4ac595f88f5463fa2ccb3dc Mon Sep 17 00:00:00 2001 From: Italo Amaral Date: Sat, 28 Oct 2023 21:50:40 -0300 Subject: [PATCH] test(CC-88): fixed authenticate controller e2e --- .../authenticate-psychologist.e2e-spec.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/core-rest-api/adapters/src/controllers/api/use-cases/psychologist/authenticate-psychologist/authenticate-psychologist.e2e-spec.ts b/libs/core-rest-api/adapters/src/controllers/api/use-cases/psychologist/authenticate-psychologist/authenticate-psychologist.e2e-spec.ts index 6dcd0b7..3c6cbb2 100644 --- a/libs/core-rest-api/adapters/src/controllers/api/use-cases/psychologist/authenticate-psychologist/authenticate-psychologist.e2e-spec.ts +++ b/libs/core-rest-api/adapters/src/controllers/api/use-cases/psychologist/authenticate-psychologist/authenticate-psychologist.e2e-spec.ts @@ -40,9 +40,11 @@ describe('[E2E] - Authenticate Psychologist', () => { expect(response.statusCode).toBe(201); expect(response.body).toEqual({ - id: newPsychologist.id, - name: newPsychologist.name, - email: newPsychologist.email, + user: { + id: newPsychologist.id, + name: newPsychologist.name, + email: newPsychologist.email, + }, access_token: expect.any(String), }); });