From db5922e4b7aef117b852b680a8f8758cf1ecae22 Mon Sep 17 00:00:00 2001 From: Michael C Date: Thu, 3 Feb 2022 13:49:13 -0500 Subject: [PATCH] fix tempvip cases --- test/cases/tempVip.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cases/tempVip.ts b/test/cases/tempVip.ts index aadf45a..fa090fa 100644 --- a/test/cases/tempVip.ts +++ b/test/cases/tempVip.ts @@ -124,24 +124,24 @@ describe("tempVIP test", function() { }) .catch(err => done(err)); }); - it("Should be able to VIP lock", (done) => { + it("Should not be able to lock segment", (done) => { postVote(tempVIPOne, UUID0, 1) .then(async res => { assert.strictEqual(res.status, 200); const row = await getSegment(UUID0); - assert.ok(row.votes > -2); - assert.strictEqual(row.locked, 1); + assert.strictEqual(row.votes, -2); + assert.strictEqual(row.locked, 0); done(); }) .catch(err => done(err)); }); - it("Should be able to VIP change category", (done) => { + it("Should be able to change category but not lock", (done) => { postVoteCategory(tempVIPOne, UUID0, "filler") .then(async res => { assert.strictEqual(res.status, 200); const row = await getSegment(UUID0); assert.strictEqual(row.category, "filler"); - assert.strictEqual(row.locked, 1); + assert.strictEqual(row.locked, 0); done(); }) .catch(err => done(err));