From eec63bbc0f4fdb39e56f37127b35c449f90a135f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 28 Dec 2017 14:29:57 +0100 Subject: Improve check follow params tests --- server/tests/utils/videos/videos.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'server/tests/utils/videos/videos.ts') diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index 6de1b8c92..f64ebd2b0 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts @@ -21,25 +21,37 @@ type VideoAttributes = { function getVideoCategories (url: string) { const path = '/api/v1/videos/categories' - return makeGetRequest(url, path) + return makeGetRequest({ + url, + path + }) } function getVideoLicences (url: string) { const path = '/api/v1/videos/licences' - return makeGetRequest(url, path) + return makeGetRequest({ + url, + path + }) } function getVideoLanguages (url: string) { const path = '/api/v1/videos/languages' - return makeGetRequest(url, path) + return makeGetRequest({ + url, + path + }) } function getVideoPrivacies (url: string) { const path = '/api/v1/videos/privacies' - return makeGetRequest(url, path) + return makeGetRequest({ + url, + path + }) } function getVideo (url: string, id: number | string, expectedStatus = 200) { -- cgit v1.2.3