From 37ea8adb73ff6d1fce4317e7c3b8f0f8bff4dc0b Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 26 Jul 2021 23:46:26 -0400 Subject: [PATCH] assert fixed value --- test/cases/reputation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cases/reputation.ts b/test/cases/reputation.ts index 4b33e59..3bd11ca 100644 --- a/test/cases/reputation.ts +++ b/test/cases/reputation.ts @@ -118,7 +118,6 @@ describe("reputation", () => { }); it("user with high downvote ratio", async () => { - // -2.125 const metrics = { totalSubmissions: 8, downvotedSubmissions: 5, @@ -131,10 +130,10 @@ describe("reputation", () => { }; assert.strictEqual(await getReputation(getHash(userIDHighDownvotes)), calculateReputationFromMetrics(metrics)); + assert.strictEqual(await getReputation(getHash(userIDHighDownvotes)), -2.125); }); it("user with high non self downvote ratio", async () => { - // -1.6428571428571428 const metrics = { totalSubmissions: 8, downvotedSubmissions: 2, @@ -146,6 +145,7 @@ describe("reputation", () => { mostUpvotedInLockedVideoSum: 0 }; assert.strictEqual(await getReputation(getHash(userIDHighNonSelfDownvotes)), calculateReputationFromMetrics(metrics)); + assert.strictEqual(await getReputation(getHash(userIDHighNonSelfDownvotes)), -1.6428571428571428); }); it("user with mostly new submissions", async () => {