Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Oct 29, 2024
1 parent 102ce11 commit d23a58a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/server/adminJs/tabs/projectsTab.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function listDelistTestCases() {
});
}
function verifyProjectsTestCases() {
it('should unverify projects when the badge is revoked and set verification form as draft', async () => {
it('should not change verification status of projects when the badge is revoked and set verification form as draft', async () => {
const project = await saveProjectDirectlyToDb({
...createProjectData(),
title: String(new Date().getTime()),
Expand Down Expand Up @@ -474,7 +474,7 @@ function verifyProjectsTestCases() {
project.id,
);
assert.isOk(updatedProject);
assert.isFalse(updatedProject?.verified);
assert.isTrue(updatedProject?.verified);
assert.isTrue(updatedProject?.listed);
assert.equal(updatedProject?.reviewStatus, ReviewStatus.Listed);
assert.equal(
Expand Down Expand Up @@ -598,6 +598,7 @@ function verifyProjectsTestCases() {
listed: true,
reviewStatus: ReviewStatus.Listed,
verificationStatus: RevokeSteps.Revoked,
isGivbackEligible: false,
});
const projectVerificationForm = await createProjectVerificationForm({
projectId: project.id,
Expand Down Expand Up @@ -654,6 +655,7 @@ function verifyProjectsTestCases() {
verified: true,
listed: false,
reviewStatus: ReviewStatus.NotListed,
isGivbackEligible: false,
});
const adminUser = await findUserById(SEED_DATA.ADMIN_USER.id);
await verifyProjects(
Expand Down Expand Up @@ -724,6 +726,7 @@ function verifyProjectsTestCases() {
title: String(new Date().getTime()),
slug: String(new Date().getTime()),
verified: true,
isGivbackEligible: false,
});
const adminUser = await findUserById(SEED_DATA.ADMIN_USER.id);
await verifyProjects(
Expand Down

0 comments on commit d23a58a

Please sign in to comment.