From a7d51cb58e0f7a5abe1cd0fe22053151166f99a7 Mon Sep 17 00:00:00 2001 From: ali ebrahimi Date: Tue, 3 Sep 2024 06:09:06 +0330 Subject: [PATCH] fix the tests --- src/resolvers/projectResolver.test.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/resolvers/projectResolver.test.ts b/src/resolvers/projectResolver.test.ts index ce0fb6162..b71202a45 100644 --- a/src/resolvers/projectResolver.test.ts +++ b/src/resolvers/projectResolver.test.ts @@ -459,11 +459,10 @@ function createProjectTestCases() { ORGANIZATION_LABELS.GIVETH, ); - // When creating project, listed is null by default - assert.equal(result.data.data.createProject.listed, null); + assert.equal(result.data.data.createProject.listed, true); assert.equal( result.data.data.createProject.reviewStatus, - ReviewStatus.NotReviewed, + ReviewStatus.Listed, ); assert.equal( @@ -568,11 +567,10 @@ function createProjectTestCases() { ORGANIZATION_LABELS.GIVETH, ); - // When creating project, listed is null by default - assert.equal(result.data.data.createProject.listed, null); + assert.equal(result.data.data.createProject.listed, true); assert.equal( result.data.data.createProject.reviewStatus, - ReviewStatus.NotReviewed, + ReviewStatus.Listed, ); assert.equal(