diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:15:16 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-08 14:15:16 +0100 |
commit | fe98765624cdd6695739bda719fcb726b71c2b2a (patch) | |
tree | 18b19d427e5c25fc9e5290062f307e668f4c9e45 /server/tests/api/check-params | |
parent | ddc07312b041c1c533b68a919681fc9bce83430d (diff) | |
download | PeerTube-fe98765624cdd6695739bda719fcb726b71c2b2a.tar.gz PeerTube-fe98765624cdd6695739bda719fcb726b71c2b2a.tar.zst PeerTube-fe98765624cdd6695739bda719fcb726b71c2b2a.zip |
Add ability to skip count query
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/videos-filter.ts | 1 | ||||
-rw-r--r-- | server/tests/api/check-params/videos.ts | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/server/tests/api/check-params/videos-filter.ts b/server/tests/api/check-params/videos-filter.ts index 5a5668665..811756745 100644 --- a/server/tests/api/check-params/videos-filter.ts +++ b/server/tests/api/check-params/videos-filter.ts | |||
@@ -40,7 +40,6 @@ describe('Test videos filters', function () { | |||
40 | let server: ServerInfo | 40 | let server: ServerInfo |
41 | let userAccessToken: string | 41 | let userAccessToken: string |
42 | let moderatorAccessToken: string | 42 | let moderatorAccessToken: string |
43 | let playlistUUID: string | ||
44 | 43 | ||
45 | // --------------------------------------------------------------- | 44 | // --------------------------------------------------------------- |
46 | 45 | ||
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 | ||