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

@@ -35,7 +35,7 @@ describe("postClearCache", () => {
it("Should get 403 as non-vip", (done) => {
postClearCache(regularUser, "clear-test")
.then(async res => {
.then(res => {
assert.strictEqual(res.status, 403);
done();
})
@@ -44,7 +44,7 @@ describe("postClearCache", () => {
it("Should give 400 with missing videoID", (done) => {
client.post(endpoint, { params: { userID: VIPUser } })
.then(async res => {
.then(res => {
assert.strictEqual(res.status, 400);
done();
})
@@ -53,7 +53,7 @@ describe("postClearCache", () => {
it("Should give 400 with missing userID", (done) => {
client.post(endpoint, { params: { videoID: "clear-test" } })
.then(async res => {
.then(res => {
assert.strictEqual(res.status, 400);
done();
})