From 0b248714157775696f258a79571b1b5e8f4cd9a5 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 21 Jun 2021 18:42:54 -0400 Subject: [PATCH] Fix comment in reputation test --- 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 77b4179..6c1e861 100644 --- a/test/cases/reputation.ts +++ b/test/cases/reputation.ts @@ -31,7 +31,7 @@ describe('reputation', () => { await db.prepare("run", startOfQuery + `('${videoID}', 1, 11, 0, 0, 'reputation-1-uuid-6', '${getHash(userIDHighDownvotes)}', 1606240000000, 50, 'sponsor', 'YouTube', 100, 0, 0, '${getHash(videoID, 1)}')`); await db.prepare("run", startOfQuery + `('${videoID}', 1, 11, 0, 0, 'reputation-1-uuid-7', '${getHash(userIDHighDownvotes)}', 1606240000000, 50, 'sponsor', 'YouTube', 100, 0, 0, '${getHash(videoID, 1)}')`); - // Each downvote is on a different video (ie. they didn't resubmit to fix their downvote) + // First video is considered a normal downvote, second is considered a self-downvote (ie. they didn't resubmit to fix their downvote) await db.prepare("run", startOfQuery + `('${videoID}A', 1, 11, 2, 0, 'reputation-1-1-uuid-0', '${getHash(userIDHighNonSelfDownvotes)}', 1606240000000, 50, 'sponsor', 'YouTube', 100, 0, 0, '${getHash(videoID, 1)}')`); // Different category, same video await db.prepare("run", startOfQuery + `('${videoID}A', 1, 11, -2, 0, 'reputation-1-1-uuid-1', '${getHash(userIDHighNonSelfDownvotes)}', 1606240000000, 50, 'intro', 'YouTube', 100, 0, 0, '${getHash(videoID, 1)}')`); @@ -120,4 +120,4 @@ describe('reputation', () => { assert.strictEqual(await getReputation(getHash(userIDHighRepAndLocked)), 1.8413793103448277); }); -}); \ No newline at end of file +});