aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-28 16:26:28 +0100
committerChocobozzz <me@florianbigard.com>2017-12-28 16:30:58 +0100
commit11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9 (patch)
tree2adb1d78aaf42dfd817d628abff12a618a6ae8f0 /server/tests/utils/videos/videos.ts
parent26d21b7867c225d99e0625af51da4643e351d86d (diff)
downloadPeerTube-11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9.tar.gz
PeerTube-11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9.tar.zst
PeerTube-11ba2ab3f1e3ec29b3765fa0c1ff4ed410c851a9.zip
Improve check videos parameters tests
Diffstat (limited to 'server/tests/utils/videos/videos.ts')
-rw-r--r--server/tests/utils/videos/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index fefee4878..166253ffc 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -143,7 +143,7 @@ function getVideosListSort (url: string, sort: string) {
143 .expect('Content-Type', /json/) 143 .expect('Content-Type', /json/)
144} 144}
145 145
146function removeVideo (url: string, token: string, id: number, expectedStatus = 204) { 146function removeVideo (url: string, token: string, id: number | string, expectedStatus = 204) {
147 const path = '/api/v1/videos' 147 const path = '/api/v1/videos'
148 148
149 return request(url) 149 return request(url)