mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
add test case
This commit is contained in:
parent
268008945c
commit
c448bb3d9a
1 changed files with 12 additions and 0 deletions
|
@ -987,4 +987,16 @@ describe("postSkipSegments", () => {
|
|||
})
|
||||
.catch(err => done(err));
|
||||
});
|
||||
|
||||
it("Should be rejected if a POI is at less than 1 second", (done: Done) => {
|
||||
fetch(`${getbaseURL()
|
||||
}/api/skipSegments?videoID=qqwerty&startTime=0.5&endTime=0.5&userID=testtesttesttesttesttesttesttesttesting`, {
|
||||
method: "POST",
|
||||
})
|
||||
.then(res => {
|
||||
assert.strictEqual(res.status, 400);
|
||||
done();
|
||||
})
|
||||
.catch(err => done(err));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue