mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-02-01 15:21:07 +03:00
404 tests
This commit is contained in:
@@ -397,4 +397,13 @@ describe('getSkipSegments', () => {
|
|||||||
})
|
})
|
||||||
.catch(() => done("Couldn't call endpoint"));
|
.catch(() => done("Couldn't call endpoint"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Should get 400 if no videoID passed in', (done: Done) => {
|
||||||
|
fetch(getbaseURL() + '/api/skipSegments')
|
||||||
|
.then(async res => {
|
||||||
|
assert.strictEqual(res.status, 400);
|
||||||
|
done();
|
||||||
|
})
|
||||||
|
.catch(err => done(err));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user