remove extra async and extra utils

This commit is contained in:
Michael C
2021-09-22 23:34:46 -04:00
parent 4e50f0ab4b
commit 28d637f620
21 changed files with 52 additions and 75 deletions

View File

@@ -310,7 +310,7 @@ describe("voteOnSponsorTime", () => {
it("Should not be able to category-vote on an invalid UUID submission", (done) => {
const UUID = "invalid-uuid";
postVoteCategory("randomID3", UUID, "intro")
.then(async res => {
.then(res => {
assert.strictEqual(res.status, 400);
done();
})
@@ -356,7 +356,7 @@ describe("voteOnSponsorTime", () => {
it("Should not be able to upvote a segment (Too many warning)", (done) => {
const UUID = "warnvote-uuid-0";
postVote("warn-voteuser01", UUID, 1)
.then(async res => {
.then(res => {
assert.strictEqual(res.status, 403);
done();
})