diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-31 16:56:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-03 08:31:02 +0100 |
commit | a15871560f80e07386c1dabb8370cd2664ecfd1f (patch) | |
tree | 44440e140c9e43b0d7f97ade777a76e649e0553d /server/tests/cli/peertube.ts | |
parent | a22046d166805222ca76060e471b6cb3d419a32d (diff) | |
download | PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.gz PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.tar.zst PeerTube-a15871560f80e07386c1dabb8370cd2664ecfd1f.zip |
Move to eslintcontain
Diffstat (limited to 'server/tests/cli/peertube.ts')
-rw-r--r-- | server/tests/cli/peertube.ts | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.ts index 15b6755f2..27fbde02d 100644 --- a/server/tests/cli/peertube.ts +++ b/server/tests/cli/peertube.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
@@ -6,15 +6,18 @@ import { | |||
6 | addVideoChannel, | 6 | addVideoChannel, |
7 | buildAbsoluteFixturePath, | 7 | buildAbsoluteFixturePath, |
8 | cleanupTests, | 8 | cleanupTests, |
9 | createUser, doubleFollow, | 9 | createUser, |
10 | doubleFollow, | ||
10 | execCLI, | 11 | execCLI, |
11 | flushAndRunServer, | 12 | flushAndRunServer, |
12 | getEnvCli, getLocalIdByUUID, | 13 | getEnvCli, |
14 | getLocalIdByUUID, | ||
13 | getVideo, | 15 | getVideo, |
14 | getVideosList, | 16 | getVideosList, |
15 | getVideosListWithToken, removeVideo, | 17 | removeVideo, |
16 | ServerInfo, | 18 | ServerInfo, |
17 | setAccessTokensToServers, uploadVideo, uploadVideoAndGetId, | 19 | setAccessTokensToServers, |
20 | uploadVideoAndGetId, | ||
18 | userLogin, | 21 | userLogin, |
19 | waitJobs | 22 | waitJobs |
20 | } from '../../../shared/extra-utils' | 23 | } from '../../../shared/extra-utils' |
@@ -101,7 +104,7 @@ describe('Test CLI wrapper', function () { | |||
101 | 104 | ||
102 | const videos: Video[] = res.body.data | 105 | const videos: Video[] = res.body.data |
103 | 106 | ||
104 | const video: VideoDetails = (await getVideo(server.url, videos[ 0 ].uuid)).body | 107 | const video: VideoDetails = (await getVideo(server.url, videos[0].uuid)).body |
105 | 108 | ||
106 | expect(video.name).to.equal('test upload') | 109 | expect(video.name).to.equal('test upload') |
107 | expect(video.support).to.equal('support_text') | 110 | expect(video.support).to.equal('support_text') |
@@ -250,7 +253,7 @@ describe('Test CLI wrapper', function () { | |||
250 | { | 253 | { |
251 | const env = getEnvCli(server) | 254 | const env = getEnvCli(server) |
252 | 255 | ||
253 | const params = `list-my-redundancies` | 256 | const params = 'list-my-redundancies' |
254 | const stdout = await execCLI(`${env} ${cmd} redundancy ${params}`) | 257 | const stdout = await execCLI(`${env} ${cmd} redundancy ${params}`) |
255 | 258 | ||
256 | expect(stdout).to.contain('super video') | 259 | expect(stdout).to.contain('super video') |
@@ -271,7 +274,7 @@ describe('Test CLI wrapper', function () { | |||
271 | 274 | ||
272 | { | 275 | { |
273 | const env = getEnvCli(server) | 276 | const env = getEnvCli(server) |
274 | const params = `list-my-redundancies` | 277 | const params = 'list-my-redundancies' |
275 | const stdout = await execCLI(`${env} ${cmd} redundancy ${params}`) | 278 | const stdout = await execCLI(`${env} ${cmd} redundancy ${params}`) |
276 | 279 | ||
277 | expect(stdout).to.not.contain('super video') | 280 | expect(stdout).to.not.contain('super video') |