.expect(expectedStatus)
}
+function viewVideo (url: string, id: number | string, expectedStatus = 204) {
+ const path = '/api/v1/videos/' + id + '/views'
+
+ return request(url)
+ .post(path)
+ .set('Accept', 'application/json')
+ .expect(expectedStatus)
+}
+
function getVideoWithToken (url: string, token: string, id: number | string, expectedStatus = 200) {
const path = '/api/v1/videos/' + id
uploadVideo,
updateVideo,
rateVideo,
+ viewVideo,
parseTorrentVideo
}