aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/views.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/views.ts')
-rw-r--r--server/tests/api/check-params/views.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/api/check-params/views.ts b/server/tests/api/check-params/views.ts
index 84d31c509..11416ccb8 100644
--- a/server/tests/api/check-params/views.ts
+++ b/server/tests/api/check-params/views.ts
@@ -43,8 +43,9 @@ describe('Test videos views', function () {
43 43
44 describe('When viewing a video', async function () { 44 describe('When viewing a video', async function () {
45 45
46 // TODO: implement it when we'll remove backward compatibility in REST API 46 it('Should fail without current time', async function () {
47 it('Should fail without current time') 47 await servers[0].views.view({ id: videoId, currentTime: undefined, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
48 })
48 49
49 it('Should fail with an invalid current time', async function () { 50 it('Should fail with an invalid current time', async function () {
50 await servers[0].views.view({ id: videoId, currentTime: -1, expectedStatus: HttpStatusCode.BAD_REQUEST_400 }) 51 await servers[0].views.view({ id: videoId, currentTime: -1, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })