aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos/video-history.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/videos/video-history.ts')
-rw-r--r--server/tests/utils/videos/video-history.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/server/tests/utils/videos/video-history.ts b/server/tests/utils/videos/video-history.ts
deleted file mode 100644
index 7635478f7..000000000
--- a/server/tests/utils/videos/video-history.ts
+++ /dev/null
@@ -1,14 +0,0 @@
1import { makePutBodyRequest } from '../requests/requests'
2
3function userWatchVideo (url: string, token: string, videoId: number | string, currentTime: number) {
4 const path = '/api/v1/videos/' + videoId + '/watching'
5 const fields = { currentTime }
6
7 return makePutBodyRequest({ url, path, token, fields, statusCodeExpected: 204 })
8}
9
10// ---------------------------------------------------------------------------
11
12export {
13 userWatchVideo
14}