aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/services.ts6
-rw-r--r--server/tests/api/videos/video-transcoder.ts20
2 files changed, 8 insertions, 18 deletions
diff --git a/server/tests/api/videos/services.ts b/server/tests/api/videos/services.ts
index 1cda464d9..b3167aebc 100644
--- a/server/tests/api/videos/services.ts
+++ b/server/tests/api/videos/services.ts
@@ -30,10 +30,8 @@ describe('Test services', function () {
30 const videoAttributes = { 30 const videoAttributes = {
31 name: 'my super name' 31 name: 'my super name'
32 } 32 }
33 await uploadVideo(server.url, server.accessToken, videoAttributes) 33 const res = await uploadVideo(server.url, server.accessToken, videoAttributes)
34 34 server.video = res.body.video
35 const res = await getVideosList(server.url)
36 server.video = res.body.data[0]
37 }) 35 })
38 36
39 it('Should have a valid oEmbed response', async function () { 37 it('Should have a valid oEmbed response', async function () {
diff --git a/server/tests/api/videos/video-transcoder.ts b/server/tests/api/videos/video-transcoder.ts
index 27927a594..9ce2ae190 100644
--- a/server/tests/api/videos/video-transcoder.ts
+++ b/server/tests/api/videos/video-transcoder.ts
@@ -1,21 +1,13 @@
1/* tslint:disable:no-unused-expression */ 1/* tslint:disable:no-unused-expression */
2 2
3import 'mocha'
4import * as chai from 'chai' 3import * as chai from 'chai'
5const expect = chai.expect 4import 'mocha'
6
7import { 5import {
8 ServerInfo, 6 flushAndRunMultipleServers, flushTests, getVideo, getVideosList, killallServers, ServerInfo, setAccessTokensToServers, uploadVideo,
9 flushTests, 7 wait, webtorrentAdd
10 uploadVideo, 8} from '../../utils'
11 getVideosList, 9
12 wait, 10const expect = chai.expect
13 setAccessTokensToServers,
14 flushAndRunMultipleServers,
15 killallServers,
16 webtorrentAdd,
17 getVideo
18} from '../../utils/index'
19 11
20describe('Test video transcoding', function () { 12describe('Test video transcoding', function () {
21 let servers: ServerInfo[] = [] 13 let servers: ServerInfo[] = []