diff options
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/services.ts | 6 | ||||
-rw-r--r-- | server/tests/api/videos/video-transcoder.ts | 20 |
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 | ||
3 | import 'mocha' | ||
4 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
5 | const expect = chai.expect | 4 | import 'mocha' |
6 | |||
7 | import { | 5 | import { |
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, | 10 | const expect = chai.expect |
13 | setAccessTokensToServers, | ||
14 | flushAndRunMultipleServers, | ||
15 | killallServers, | ||
16 | webtorrentAdd, | ||
17 | getVideo | ||
18 | } from '../../utils/index' | ||
19 | 11 | ||
20 | describe('Test video transcoding', function () { | 12 | describe('Test video transcoding', function () { |
21 | let servers: ServerInfo[] = [] | 13 | let servers: ServerInfo[] = [] |