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) {