From e548513040a2f8eee258abfb495583704e79f2cc Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 3 Jan 2022 12:31:04 +0530 Subject: [PATCH] test: update api test Signed-off-by: Pranav C --- packages/nocodb/src/__tests__/graphql.test.ts | 2 +- packages/nocodb/src/__tests__/rest.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/__tests__/graphql.test.ts b/packages/nocodb/src/__tests__/graphql.test.ts index e594e5ff00..291ed5f43b 100644 --- a/packages/nocodb/src/__tests__/graphql.test.ts +++ b/packages/nocodb/src/__tests__/graphql.test.ts @@ -330,7 +330,7 @@ describe('{Auth, CRUD, HasMany, Belongs} Tests', () => { request(app) .post('/auth/password/forgot') .send({ email: 'abc@abc.com' }) - .expect(400, done); + .expect(200, done); }); it('Forgot password with an existing email id', function(done) { diff --git a/packages/nocodb/src/__tests__/rest.test.ts b/packages/nocodb/src/__tests__/rest.test.ts index 3429d7b5a4..5cf8ea535c 100644 --- a/packages/nocodb/src/__tests__/rest.test.ts +++ b/packages/nocodb/src/__tests__/rest.test.ts @@ -194,7 +194,7 @@ describe('{Auth, CRUD, HasMany, Belongs} Tests', () => { request(app) .post('/auth/password/forgot') .send({ email: 'abc@abc.com' }) - .expect(400, done); + .expect(200, done); }); it('Forgot password with an existing email id', function(done) {