Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshad Ali authored and Arshad Ali committed Sep 17, 2020
1 parent 6d0ffde commit 0c6c8ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/modules/auth/__tests__/auth.routes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('auth.routes', () => {

// Assert
expect(response.status).toEqual(400)
expect(response.text).toEqual('Please enter a valid email')
expect(response.text).toEqual('Some required parameters are missing')
})

it('should return 401 when domain of body.email does not exist in Agency collection', async () => {
Expand Down Expand Up @@ -136,7 +136,7 @@ describe('auth.routes', () => {

// Assert
expect(response.status).toEqual(400)
expect(response.text).toEqual('Please enter a valid email')
expect(response.text).toEqual('Some required parameters are missing')
})

it('should return 401 when domain of body.email does not exist in Agency collection', async () => {
Expand Down Expand Up @@ -279,7 +279,7 @@ describe('auth.routes', () => {

// Assert
expect(response.status).toEqual(400)
expect(response.text).toEqual('Please enter a valid email')
expect(response.text).toEqual('Some required parameters are missing')
})

it('should return 400 when body.otp is less than 6 digits', async () => {
Expand All @@ -291,7 +291,7 @@ describe('auth.routes', () => {

// Assert
expect(response.status).toEqual(400)
expect(response.text).toEqual('Please enter a valid otp')
expect(response.text).toEqual('Some required parameters are missing')
})

it('should return 400 when body.otp is 6 characters but does not consist purely of digits', async () => {
Expand All @@ -303,7 +303,7 @@ describe('auth.routes', () => {

// Assert
expect(response.status).toEqual(400)
expect(response.text).toEqual('Please enter a valid otp')
expect(response.text).toEqual('Some required parameters are missing')
})

it('should return 401 when domain of body.email does not exist in Agency collection', async () => {
Expand Down

0 comments on commit 0c6c8ac

Please sign in to comment.