diff options
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 | ||