aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r--server/tests/api/check-params/videos.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts
index fa6d6f622..16ef1c505 100644
--- a/server/tests/api/check-params/videos.ts
+++ b/server/tests/api/check-params/videos.ts
@@ -75,8 +75,12 @@ describe('Test videos API validator', function () {
75 await checkBadSortPagination(server.url, path) 75 await checkBadSortPagination(server.url, path)
76 }) 76 })
77 77
78 it('Should fail with a bad skipVideos query', async function () {
79 await makeGetRequest({ url: server.url, path, statusCodeExpected: 200, query: { skipCount: 'toto' } })
80 })
81
78 it('Should success with the correct parameters', async function () { 82 it('Should success with the correct parameters', async function () {
79 await makeGetRequest({ url: server.url, path, statusCodeExpected: 200 }) 83 await makeGetRequest({ url: server.url, path, statusCodeExpected: 200, query: { skipCount: false } })
80 }) 84 })
81 }) 85 })
82 86