From 0c6c8acfa95a591449e90dea229b50bc5b73a7c4 Mon Sep 17 00:00:00 2001 From: Arshad Ali Date: Thu, 17 Sep 2020 19:33:16 +0800 Subject: [PATCH] Fix more tests --- src/app/modules/auth/__tests__/auth.routes.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/modules/auth/__tests__/auth.routes.spec.ts b/src/app/modules/auth/__tests__/auth.routes.spec.ts index 91994359d1..fa3e69b9f6 100644 --- a/src/app/modules/auth/__tests__/auth.routes.spec.ts +++ b/src/app/modules/auth/__tests__/auth.routes.spec.ts @@ -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 () => { @@ -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 () => { @@ -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 () => { @@ -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 () => { @@ -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 () => {