mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
update auotmod check
- remove NB code - reduce complexity + unnecessary iterations - use client duration if given
This commit is contained in:
@@ -734,22 +734,6 @@ describe("postSkipSegments", () => {
|
||||
.catch(err => done(err));
|
||||
});
|
||||
|
||||
it("Should be rejected if NB's predicted probability is <70%.", (done) => {
|
||||
const videoID = "LevkAjUE6d4";
|
||||
postSkipSegmentParam({
|
||||
videoID,
|
||||
startTime: 40,
|
||||
endTime: 60,
|
||||
userID: submitUserTwo,
|
||||
category: "sponsor"
|
||||
})
|
||||
.then(res => {
|
||||
assert.strictEqual(res.status, 200);
|
||||
done();
|
||||
})
|
||||
.catch(err => done(err));
|
||||
});
|
||||
|
||||
it("Should be rejected with custom message if user has to many active warnings", (done) => {
|
||||
postSkipSegmentJSON({
|
||||
userID: warnUser01,
|
||||
|
||||
Reference in New Issue
Block a user