X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-description.ts;h=b8e98e45f1cf64ce1c87717c89558c5cdfe97880;hb=2291a412d25bd139398ca9e7a5131d0c1e4ffd7d;hp=333d539f4605af9db5b19893404d2d47721e22af;hpb=210feb6cc484a6c5c63c98f770de34e223f944cb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-description.ts b/server/tests/api/videos/video-description.ts index 333d539f4..b8e98e45f 100644 --- a/server/tests/api/videos/video-description.ts +++ b/server/tests/api/videos/video-description.ts @@ -1,13 +1,13 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' import 'mocha' import { + cleanupTests, flushAndRunMultipleServers, getVideo, getVideoDescription, getVideosList, - killallServers, ServerInfo, setAccessTokensToServers, updateVideo, @@ -22,7 +22,7 @@ describe('Test video description', function () { let servers: ServerInfo[] = [] let videoUUID = '' let videoId: number - let longDescription = 'my super description for server 1'.repeat(50) + const longDescription = 'my super description for server 1'.repeat(50) before(async function () { this.timeout(40000) @@ -60,7 +60,7 @@ describe('Test video description', function () { // 30 characters * 6 -> 240 characters const truncatedDescription = 'my super description for server 1'.repeat(7) + - 'my super descrip...' + 'my super descrip...' expect(video.description).to.equal(truncatedDescription) } @@ -99,7 +99,7 @@ describe('Test video description', function () { } }) - after(function () { - killallServers(servers) + after(async function () { + await cleanupTests(servers) }) })