mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
catch all error in endpoint
This commit is contained in:
@@ -146,7 +146,7 @@ describe("getSegmentInfo", () => {
|
||||
});
|
||||
|
||||
it("Should be able to retreive hidden segment", (done: Done) => {
|
||||
fetch(`${getbaseURL() }/api/segmentInfo?UUID=${hiddenID}`)
|
||||
fetch(`${getbaseURL()}/api/segmentInfo?UUID=${hiddenID}`)
|
||||
.then(async res => {
|
||||
assert.strictEqual(res.status, 200);
|
||||
const data = await res.json();
|
||||
|
||||
Reference in New Issue
Block a user