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), }); });