Skip to content

Commit

Permalink
removed console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolik170 committed Nov 16, 2023
1 parent 6acea97 commit 0b00a93
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/integration/controllers/auth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
Expand Down Expand Up @@ -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}`])
Expand Down

0 comments on commit 0b00a93

Please sign in to comment.