X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-change-ownership.ts;h=dee6575b92f6f078943333ca0873f36dc175ac34;hb=c977fd3ec931c059111ddb2b8d6ddbb20b6b99a1;hp=3a3add71b099cd744ca44e3d56fc309f7e71edbd;hpb=bec4ea343987c69252b84d02f444c0f033d4a3f9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-change-ownership.ts b/server/tests/api/videos/video-change-ownership.ts index 3a3add71b..dee6575b9 100644 --- a/server/tests/api/videos/video-change-ownership.ts +++ b/server/tests/api/videos/video-change-ownership.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' import 'mocha' @@ -38,7 +38,7 @@ describe('Test video change ownership - nominal', function () { } let firstUserAccessToken = '' let secondUserAccessToken = '' - let lastRequestChangeOwnershipId = undefined + let lastRequestChangeOwnershipId = '' before(async function () { this.timeout(50000) @@ -48,15 +48,15 @@ describe('Test video change ownership - nominal', function () { const videoQuota = 42000000 await createUser({ - url: servers[ 0 ].url, - accessToken: servers[ 0 ].accessToken, + url: servers[0].url, + accessToken: servers[0].accessToken, username: firstUser.username, password: firstUser.password, videoQuota: videoQuota }) await createUser({ - url: servers[ 0 ].url, - accessToken: servers[ 0 ].accessToken, + url: servers[0].url, + accessToken: servers[0].accessToken, username: secondUser.username, password: secondUser.password, videoQuota: videoQuota @@ -191,7 +191,7 @@ describe('Test video change ownership - nominal', function () { await waitJobs(servers) }) - it('Should have video channel updated', async function () { + it('Should have the channel of the video updated', async function () { for (const server of servers) { const res = await getVideo(server.url, servers[0].video.uuid) @@ -209,7 +209,7 @@ describe('Test video change ownership - nominal', function () { }) describe('Test video change ownership - quota too small', function () { - let server: ServerInfo = undefined + let server: ServerInfo const firstUser = { username: 'first', password: 'My great password' @@ -220,14 +220,14 @@ describe('Test video change ownership - quota too small', function () { } let firstUserAccessToken = '' let secondUserAccessToken = '' - let lastRequestChangeOwnershipId = undefined + let lastRequestChangeOwnershipId = '' before(async function () { this.timeout(50000) // Run one server server = await flushAndRunServer(1) - await setAccessTokensToServers([server]) + await setAccessTokensToServers([ server ]) const videoQuota = 42000000 const limitedVideoQuota = 10