From 0b00a93171bfae5075d1613ad880b2399846c909 Mon Sep 17 00:00:00 2001 From: Anatoliy Sarakhman Date: Thu, 16 Nov 2023 10:21:21 +0200 Subject: [PATCH] removed console.log --- test/integration/controllers/auth.spec.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/integration/controllers/auth.spec.js b/test/integration/controllers/auth.spec.js index aac50708..9bd606f5 100644 --- a/test/integration/controllers/auth.spec.js +++ b/test/integration/controllers/auth.spec.js @@ -73,7 +73,7 @@ describe('Auth controller', () => { expectError(422, error, signupResponse) }) - it("should throw validation errors for the password's length", async () => { + it('should throw validation errors for the password`s length', async () => { const responseForMax = await app .post('/auth/signup') .send({ ...user, password: '1'.repeat(MAX_PASSWORD_LENGTH + 1) }) @@ -218,14 +218,9 @@ describe('Auth controller', () => { const loginUserResponse = await app.post('/auth/login').send({ email: user.email, password: user.password }) - console.log(loginUserResponse) - const refreshToken = loginUserResponse.header['set-cookie'][1].split(';')[0].split('=')[1] const accessToken = loginUserResponse.header['set-cookie'][0].split(';')[0].split('=')[1] - console.log('refresh: ', refreshToken) - console.log('access: ', accessToken) - const refreshResponse = await app .get('/auth/refresh') .set('Cookie', [`refreshToken=${refreshToken}`, `accessToken=${accessToken}`])