Skip to content

Commit

Permalink
removed token global variable in auth service test
Browse files Browse the repository at this point in the history
  • Loading branch information
mayura-andrew committed Jun 11, 2024
1 parent 887a3fb commit b5f64a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/services/auth.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,11 @@ describe('loginUser', () => {
})

describe('Auth Service', () => {
let token: string | any
const validEmail = '[email protected]'
const invalidEmail = '[email protected]'
const newPassword = 'newpassword123'

beforeAll(async () => {
token = await generateResetToken(validEmail)
})
const token = generateResetToken(validEmail)

it('should generate a password reset token', async () => {
expect(token).toBeDefined()
Expand Down

0 comments on commit b5f64a0

Please sign in to comment.