X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fcli%2Fpeertube.ts;h=27fbde02de7848f38fd8e0cc6c12c461662ab1ce;hb=4c1def5fd8e9f483238eb38e221f555e2e6bbf07;hp=15b6755f22d1338622944afcd77fd3d5abc75f6c;hpb=d5692d4088cdd9fde3be6ff34be8ce2816dab0cf;p=github%2FChocobozzz%2FPeerTube.git 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 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import 'mocha' import { expect } from 'chai' @@ -6,15 +6,18 @@ import { addVideoChannel, buildAbsoluteFixturePath, cleanupTests, - createUser, doubleFollow, + createUser, + doubleFollow, execCLI, flushAndRunServer, - getEnvCli, getLocalIdByUUID, + getEnvCli, + getLocalIdByUUID, getVideo, getVideosList, - getVideosListWithToken, removeVideo, + removeVideo, ServerInfo, - setAccessTokensToServers, uploadVideo, uploadVideoAndGetId, + setAccessTokensToServers, + uploadVideoAndGetId, userLogin, waitJobs } from '../../../shared/extra-utils' @@ -101,7 +104,7 @@ describe('Test CLI wrapper', function () { const videos: Video[] = res.body.data - const video: VideoDetails = (await getVideo(server.url, videos[ 0 ].uuid)).body + const video: VideoDetails = (await getVideo(server.url, videos[0].uuid)).body expect(video.name).to.equal('test upload') expect(video.support).to.equal('support_text') @@ -250,7 +253,7 @@ describe('Test CLI wrapper', function () { { const env = getEnvCli(server) - const params = `list-my-redundancies` + const params = 'list-my-redundancies' const stdout = await execCLI(`${env} ${cmd} redundancy ${params}`) expect(stdout).to.contain('super video') @@ -271,7 +274,7 @@ describe('Test CLI wrapper', function () { { const env = getEnvCli(server) - const params = `list-my-redundancies` + const params = 'list-my-redundancies' const stdout = await execCLI(`${env} ${cmd} redundancy ${params}`) expect(stdout).to.not.contain('super video')