404 tests

This commit is contained in:
Michael C 2021-07-07 17:39:16 -04:00
parent 9088d9fb9e
commit 596dbf4ac8
No known key found for this signature in database
GPG key ID: FFB04FB3B878B7B4

View file

@ -397,4 +397,13 @@ describe('getSkipSegments', () => {
})
.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));
});
});