add innertube tests for private videos

This commit is contained in:
Michael C
2022-11-09 14:39:02 -05:00
parent 90e68caaf7
commit 7fb68937d0
5 changed files with 53 additions and 3 deletions

View File

@@ -1292,4 +1292,20 @@ describe("postSkipSegments", () => {
})
.catch(err => done(err));
});
it("Should successfully submit if video is private", (done) => {
const videoID = "private-video";
postSkipSegmentParam({
videoID,
startTime: 1,
endTime: 5,
category: "sponsor",
userID: submitUserTwo
})
.then(res => {
assert.strictEqual(res.status, 200);
done();
})
.catch(err => done(err));
});
});